nadz
03-23-2007, 05:54 AM
hi Gurus,
I have this macro which is giving me compile error when I tried to use it
saying missing ')' before '{' when I try to call. Is it not able to recognize for loop? or am I missing something else.
I am using MVC++.
Thanks to all in advance.
nadz
//macro
#define link_list_loop(position, node, head) \
for (position = (head)->next, node = position->next; position != (head); position = node, node = position->next)
// calling
link_list_loop(fix, &PC->OP, node) {
staments.........
}
I have this macro which is giving me compile error when I tried to use it
saying missing ')' before '{' when I try to call. Is it not able to recognize for loop? or am I missing something else.
I am using MVC++.
Thanks to all in advance.
nadz
//macro
#define link_list_loop(position, node, head) \
for (position = (head)->next, node = position->next; position != (head); position = node, node = position->next)
// calling
link_list_loop(fix, &PC->OP, node) {
staments.........
}