jextract supports an option to define a C preprocessor macro from the command line:
-D <macro> define a C preprocessor macro
Note that this is separate from --include-macro <name>, which seems to do something else. This pull requests adds the -D functionality under a definedMacros property in the LibraryDefinition.
thank you for your interest and effort in this project! Your changes look good to me, so I will merge them into master and create a new plugin release after that :slightly_smiling_face:
jextract
supports an option to define a C preprocessor macro from the command line:Note that this is separate from
--include-macro <name>
, which seems to do something else. This pull requests adds the-D
functionality under adefinedMacros
property in the LibraryDefinition.