swig/Source/Preprocessor
Olly Betts 74d12d8c4c Don't report "Warning 202: Error: ..."
An invalid preprocessor expression is reported as a pair of
warnings with the second giving a more detailed message from the
expression evaluator.  Previously SWIG prefixed the second message
with "Error:" - that was confusing as it's actually only a warning
by default so we've now dropped this prefix.

Before:

x.i:1: Warning 202: Could not evaluate expression '1.2'
x.i:1: Warning 202: Error: 'Floating point constant in preprocessor expression'

Now:

x.i:1: Warning 202: Could not evaluate expression '1.2'
x.i:1: Warning 202: Floating point constant in preprocessor expression

See #1465
2022-02-24 08:40:27 +13:00
..
cpp.c Don't report "Warning 202: Error: ..." 2022-02-24 08:40:27 +13:00
expr.c Clean up preprocessor expression evaluation code 2022-02-24 08:15:07 +13:00
preprocessor.h const char * correctness fixes (in C code) 2012-11-26 20:30:37 +00:00