Posted by mniam Wed 14th Mar 2007 15:12 - Syntax is C++ - 24 views
Download | New Post | Modify | Hide line numbers
Download | New Post | Modify | Hide line numbers
Description:
explanation needed !
why is the macro enclosed between do { ... } while (0);
explanation needed !
why is the macro enclosed between do { ... } while (0);
-
#define MM(x) do { \
-
int m_temp = x->DoSomeStuff(); \
-
x->SomeOtherStuff(); \
-
x->StillSomeMoreStuff();
-
} while (0);
PermaLink to this entry https://pastebin.co.uk/11860
Posted by mniam Wed 14th Mar 2007 15:12 - Syntax is C++ - 24 views
Download | New Post | Modify | Hide line numbers
Download | New Post | Modify | Hide line numbers
Comments: 0