I'm looking for a tool (or method to force an existing compiler) to apply all precompiler directives to a C/C++ source file and spit out a new C/C++ source file.
For example, the original:
The tool would produce:
Same thing with #includes, etc, they would all be resolved and removed.
Dan East
For example, the original:
- Code:
#define TEST 1234
#ifdef TEST
int i=TEST;
#else
int i=0;
#endif
The tool would produce:
- Code:
int i=1234;
Same thing with #includes, etc, they would all be resolved and removed.
Dan East