Yes. Pass gcc the -E
option. This will output preprocessed source code.
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
- Shall I prefer constants over defines?
- How to make a char string from a C macro’s value?
- Macro returning the number of arguments it is given in C? [duplicate]
- # and ## in macros
- Seeing expanded C macros
- Escaping a # symbol in a #define macro?
- 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?
- 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?
- offsetof at compile time
- Using Parentheses in Define Preprocessor Statements