Are there any IDE's or plugins to one that will expand/preprocess a macro and show their results inline without compiling?
I've found a couple of other questions that are related, but they require compiling.
Are there any IDE's or plugins to one that will expand/preprocess a macro and show their results inline without compiling?
I've found a couple of other questions that are related, but they require compiling.
On a Unix-like platform, you can use cpp (the C preprocessor) on a file to get that result.
Just have your IDE run the preprocessor, but the not the compiler, assembler, or linker.
Most compilers offer you the option to do that. Different compilers will have different switches though. Consult your docs.
For example, with Microsoft C++ compilers that would be /E /EP and /P command-line switches. They can be specified from within their IDE as well. These switches also disable compilation, just as you wanted.