首页 > 应用开发 > IT综合 > gcc的-D和-U参数:宏的设置与取消(转)
|
CODE:
/* hello.c */
#include #ifdef YES char* str = "Yes, this is a macro."; #else char* str = "No, there is no macro."; #endif int main() { printf("%s ", str); return 0; } 来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/10617542/viewspace-959917/ ,如需转载,请注明出处,否则将追究法律责任。
上一篇:
linux磁盘结构及分区(转)
下一篇:
怎样为linux内核打补丁(转)
请登录后发表评论
登录
全部评论
|