简体   繁体   中英

Macros in c & C++

在运行时是否可以定义或取消定义宏。

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM