I define a macro like this:
and later,when I try to use that macro,
I have this error:
"error:requ est for member 'value' in something not a structure or union "
So can you please help me to fix this problem?
Is there any other way to define macros for nested structs?
Code:
#define L(p) ((p).value.len) typedef struct node { int dimension; int position; int size; union { long len; float f; } value; struct node *prev; struct node *next; } node, *np;
I have this error:
"error:requ est for member 'value' in something not a structure or union "
So can you please help me to fix this problem?
Is there any other way to define macros for nested structs?
Comment