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 !