Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Macros

Status
Not open for further replies.

SebastianStricker

Programmer
Aug 28, 2003
10
0
0
DE
Hello guys,

is there any option in MS Visual C++ 6.0 to view the code how it looks like after the preprocessor has done all macro replacements?

I want to debug a project where the original programmer inserted a lot of macros, especially for declaring types and maps in the header files. So the original code is hard to read and very confusing.

Kind regards,
Sebastian
 
The answer is no. Do not use macros. In C++ you have a lot of ways to not use macros.

Ion Filipski
1c.bmp

ICQ: 95034075
AIM: IonFilipski
filipski@excite.com
 
The command (command prompt)

cl /P xxx.cpp

will preprocess and put output into file xxx.i

/JOlesen

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top