tinycpp icon indicating copy to clipboard operation
tinycpp copied to clipboard

Command line options after the filename are ignored

Open therontarigo opened this issue 2 years ago • 0 comments

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

therontarigo avatar Feb 13 '23 04:02 therontarigo