Lambosaurus / py-c-preprocessor

Tools for preprocessing C files in python
MIT License
15 stars 3 forks source link

Source expansion must be disabled on files where macro arguments are across multiple lines #2

Closed Lambosaurus closed 2 years ago

Lambosaurus commented 2 years ago

This segment throws an exception, as the source is usually expanded line by line:

https://github.com/Lambosaurus/py-c-preprocessor/blob/19b33391548e67b274303c849435faaa1ef35a01/examples/test_src/usb/cdc/USB_CDC.c#L90-L96

Lambosaurus commented 2 years ago

Resolved here: a866b5d1c180c2d1a844c26657e15e063dbef097 This should be tidied up a little in future however...