Have you ever faced the situation in which you have to know the value of a complex macro in C/C++ inside of a project ?
But this macro is defined by so much many other macros and hexadecimal values are used ?
Calculating it manually would take too much time and energy, and you wouldn't be sure of the result.
I have the solution for you: Macro Parser.
Using a few command line you can calculate the value of almost any macro.
This tool is only working on Windows for now, but ports can be easily created.
It's a tool I made during my apprenticeship at ST-Microelectronics.
I had to go through very complex macros defined over hundreds of headers.
- Hexadecimal value conversion
- Incorrect macro detection
- Redefined macro detection
- Customizable options
- Clear and easy-to-use command line interface
- Warnings and errors
- Silent local conditional expression evaluation
Go to the release page.
Download the latest stable version.
Double-click on the executable and you're done !
Run make inside the folder Project of the repository.
OR run "g++ -std=c++11 command.cpp container.cpp filesystem.cpp hexa.cpp main.cpp options.cpp stringeval.cpp -o appli.exe" inside the folder Project of the repo.
OR you can download Code::Blocks https://www.codeblocks.org/downloads/binaries/ (version with MinGW installed), create a new project, add the files to it, rebuild everything from scratch, and run.