Closed andre2007 closed 1 year ago
If there was a way to detect that a macro is an integer or string constant, then I'd be all for the change, but I can't think of any.
If you don't care about macros, you can use --ignore-macros
, and that code won't get generated.
I just saw pr https://github.com/atilaneves/dpp/pull/262 and now think about wheter an argument --accept-macros=foo,bar
would solve the issue better.
There is a small list of macros which I need. Beeing able to specify them would be great .
For this dockerfile
and the file
open62541h.dpp
A 6MB file
/tmp/open62541h.d
is generated with ~ 142.000 lines. The first 6000 lines looks as expected. After that there are lines with these pattern:Are the static if / string mixin really needed, or could just instead the line
be added?