摘要:C 预编译中的二次替换问题今天在阅读linux看门狗驱动的时候,发现一段奇怪的代码:static int tmr_atboot = CONFIG_S3C2410_WATCHDOG_ATBOOT;MODULE_PARM_DESC(tmr_atboot, "Watchdog is started at boot time if set to 1, default=" __MODULE_STRING(CONFIG_S3C2410_WATCHDOG_ATBOOT));依次跟进去宏的具体定义: #define __MODULE_STRING(x) __stringify(x) #de
阅读全文