I am analyzing legacy code that uses macro heavily, I’m lost in understanding how the macro expands in code.
Can someone suggest me some kind of tool or technique so that I can study the actual code created by the macro extension.
Platform: Windows XPLanguage: C ++Compiler: VC6
With visual studio, you can use the Generate Preprocessed File option.
In the properties of your project, select
C/C++/Preprocessor/
There is an option in this tab:
generate a preprocessed file.
Select Yes, with numbers.
To run GCC as a pre-processor, run:
gcc -E source-file.cc > processed-source-file.cc
#includes, .
Run the pre-processor (cpp) in the source file.
Since you are using Visual C, this will not help you, but may be useful to others:
Netbeans 6.7 can display an extended version of C / C ++ code in a separate window during editing.
Source: https://habr.com/ru/post/1719302/More articles:Flex Drag & Drop: Detect when all data has been moved from source to destination - flexHow to handle IQueryable swap with Linq To Entities? (problem with OrderBy) - genericsHow to add another column to the problem table report in Redmine? - ruby-on-railsD 1.0 (Tango) Move the mouse; simulate keystrokes, etc. - keyboardShould I sanitize the file input field in my Perl CGI HTML form? - perlЧто такое компилятор командной строки? - compiler-constructionСобытие фокусировки IDE Selenium не срабатывает, если не активировано окно - firefoxЧтение GIT маркеров слияния - gitHow to convert Text to Wave using multi-threaded SAPI? - c ++double digits in C ++ - c ++All Articles