Wednesday, August 22, 2012

write a multi-statement macro?



#define MYMACRO(argument1, argument2) do { \
                                                              stament1; \
                                                              stament2; \
                                                             } while(1) /* no trailing semicolon */

No comments:

Post a Comment