⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tr-warn2.c

📁 linux下编程用 编译软件
💻 C
字号:
/* K+R rejects use of function-like macros in non-function context.   ANSI C explicitly permits this (the macro is not expanded).   We should not warn about this during pre-expansion of arguments,   since traditional preprocessors don't do pre-expansion, and we get   the warning anyway during the re-scan pass if and only if it is   appropriate.  *//* { dg-do preprocess } *//* { dg-options -Wtraditional } */#define f(x) x#define g(x) x / 2#define h(a, b) a(b)f(g) (3)	    /* { dg-bogus "must be used with arguments" } */f 2		    /* { dg-warning "must be used with arguments" } */f(g) 3		    /* { dg-warning "must be used with arguments" } */h(f, 3)		    /* { dg-bogus "must be used with arguments" } */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -