Macros in c & C++
Is it possible to define or undefine macros dur开发者_开发问答ing runtime.
No. Macros are a preprocessor mechanism, and are fully resolved even before the compiler executes.
Their purpose is to alter the source code that the compiler sees, so they don't even exist at runtime (let alone permit modification).
精彩评论