tinycpp
tinycpp copied to clipboard
Command line options after the filename are ignored
test.h:
"PARAM1" is PARAM1
"PARAM2" is PARAM2
#ifdef DEBUG
debug
#endif
normal
cpp -DPARAM1=p1val test.h -DPARAM2=p2val -DDEBUG :
# (snip)
"PARAM1" is p1val
"PARAM2" is p2val
debug
normal
./cppmain -DPARAM1=p1val test.h -DPARAM2=p2val -DDEBUG :
"PARAM1" is p1val
"PARAM2" is PARAM2
normal