开发者

Macros in c & C++

开发者 https://www.devze.com 2023-02-14 19:02 出处:网络
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.

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).

0

精彩评论

暂无评论...
验证码 换一张
取 消