摘要: 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 阅读全文
posted @ 2012-07-06 10:31 天地不仁 阅读(576) 评论(0) 推荐(0) 编辑