Files
LSL-PyOptimizer/cpreproc.py
Sei Lisa 5e88adcff3 Update to latest pcpp, remove expression evaluator
PCPP now includes a decent expression evaluator instead of relying on Python's, therefore our evaluator is removed. The corresponding license text no longer applies, because the snippet that used it has been removed.

This patch also corrects the handling of include files, which was supposed to raise an exception or return something (and now it needs an extra parameter). We just report an error and raise the special exception that pcpp uses to ignore and remove the directive.

This patch also handles #error and invalid directives, which were passed through in previous versions. #warning and #line are also passed through.
2020-11-04 13:09:34 +01:00

3.7 KiB