Hacker News new | ask | show | jobs
by jacquesm 4384 days ago
As C preprocessor macros come these are pretty mild.
1 comments

Mind this is only the simplest functions and thing can already go wild if you apply classic bad C++ coding practices, like cascade inheritance or god object. Add to that, you will (oh yes, you will, at least once) make type errors with macros, and you will fail to maintain all the class constructors and virtual functions.