Not possible. Do it the other way around:
#ifdef COVERAGE_TOOL
#define COV_ON(x) _Pragma (COVERAGE #x)
#else
#define COV_ON(x)
#endif
More Related Contents:
- How can I concatenate twice with the C preprocessor and expand a macro as in “arg ## _ ## MACRO”?
- Overloading Macro on Number of Arguments
- C macros and use of arguments in parentheses
- Should I use #include in headers?
- How to make a variadic macro (variable number of arguments)
- Is it possible to iterate over arguments in variadic macros?
- “#include” a text file in a C program as a char[]
- How to write a while loop with the C preprocessor?
- Including one C source file in another?
- How, exactly, does the double-stringize trick work?
- What exactly do C include guards do?
- Array-size macro that rejects pointers
- Can gcc output C code after preprocessing?
- Why does the C preprocessor interpret the word “linux” as the constant “1”?
- Shall I prefer constants over defines?
- Macro returning the number of arguments it is given in C? [duplicate]
- Seeing expanded C macros
- Concatenate int to string using C Preprocessor
- Indenting #defines
- What are C macros useful for?
- Opposite of C preprocessor “stringification”
- Why do most C developers use define instead of const? [duplicate]
- Macro and function with same name
- Why does #define not require a semicolon?
- Is the sizeof(enum) == sizeof(int), always?
- Are constant C expressions evaluated at compile time or at runtime?
- Changing a macro at runtime in C
- How do I print a #defined constant in GDB?
- Why can’t I use sizeof in a preprocessor condition?
- How can I make a char string from a C macro’s value?