For the sake of readability, I've been trying to do something like this:
#define initialize(x)(type x = initfunction())
int main(){
initialize(example);
example.item = 0;
return 0;
}
where type is a typedef'd struct, and initfunction() generates one, inits values, and returns it. My problem is, I get these errors:
warning: unused variable 'example'
error: 'example' undeclared (first use in this function)
-Andrew