C ++ macro extension, debugging

I have a bunch of MACROS in C ++ code that extends to some functions. And I'm debugging something. I just want to see what the code looks like in "

Any ideas?

+4
source share
2 answers

You can view the preprocessor output to see how the code looks after it has been preprocessed.

gcc and Visual C ++ will both be preprocess for stdout if you pass the -E flag on the command line to the compiler.

+6
source

/ P, see it in the C ++ section - Preprocessor - a process in a file on Visual Studio property pages, the output file has the extension .i

+4
source

Source: https://habr.com/ru/post/1307820/


All Articles