R
Rafal 'Raf256' Maj
Hi,
is there a commend to undefine all macros #define inside a file?
in example:
#define FOR(x) for (..............)
#define MyMacro1(x,y) ...........
// ... code ...
#undef all-macros
So that, if file above would be a *.h file included somewhere else, it will
not left "garbage" of own "local" macros.
Yes, I know its better to use templates etc, but in some cases I find
macros a bit more comfortable.
is there a commend to undefine all macros #define inside a file?
in example:
#define FOR(x) for (..............)
#define MyMacro1(x,y) ...........
// ... code ...
#undef all-macros
So that, if file above would be a *.h file included somewhere else, it will
not left "garbage" of own "local" macros.
Yes, I know its better to use templates etc, but in some cases I find
macros a bit more comfortable.