Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

C++ macro expansion, debugging

Tags:

People also ask

What is macro expansion in C?

In programming languages, such as C or assembly language, a name that defines a set of commands that are substituted for the macro name wherever the name appears in a program (a process called macro expansion) when the program is compiled or assembled.

How do I debug a macro in Visual Studio?

Start debugging in Visual Studio by pressing F5. In Excel, open up your worksheet and start debugging your VBA code using Excel's debugger. When the managed code gets executed where you set the breakpoint, you'll stop in Visual Studio.

What is GDB macro?

GDB can evaluate expressions containing macro invocations, show the result of macro expansion, and show a macro's definition, including where it was defined. You may need to compile your program specially to provide GDB with information about preprocessor macros.

How macro expansion is done?

Macros are expanded by the preprocessor, which is a separate program that runs before the compiler proper. Macros perform a simple text substitution.


I have a bunch of MACROS in C++ code that expand into some functions. And I am debugging something. Just want to see what the code ends up looking like”

Any ideas?