Running pcpp --line-directive= --passthru-defines test.c produces the following output:
#define x int f();
If I omit the leading space on the second line of #define x then I get:
Traceback (most recent call last):
File "/home/dux/.local/lib/python2.7/site-packages/pcpp/pcmd.py", line 140, in __init__
self.write(self.args.output)
File "/home/dux/.local/lib/python2.7/site-packages/pcpp/preprocessor.py", line 1341, in write
toks[n-1].value = toks[n-1].value[0]
IndexError: string index out of range
None
INTERNAL PREPROCESSOR ERROR AT AROUND test.c:3, FATALLY EXITING NOW
test.c
:test.h
:Running
pcpp --line-directive= --passthru-defines test.c
produces the following output:If I omit the leading space on the second line of
#define x
then I get: