Posted by mniam Wed 14th Mar 2007 15:12 - Syntax is C++ - 24 views
Download | New Post | Modify | Hide line numbers
Description:
explanation needed !

why is the macro enclosed between do { ... } while (0);

  1. #define MM(x) do { \
  2. int m_temp = x->DoSomeStuff(); \
  3. x->SomeOtherStuff(); \
  4. x->StillSomeMoreStuff();
  5. } 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

 

Comments: 0