RainwayApp / node-clangffi

Generate Typescript FFI bindings for C/C++ libraries using libclang and ffi-napi.
MIT License
7 stars 1 forks source link

Support custom preprocessor definitions #30

Closed bengreenier closed 2 years ago

bengreenier commented 2 years ago

We should provide a way for a user to call clangffi specifying some flags to define symbols. E.g. -DDEBUG=1 to define DEBUG=1.

This should work similarly to clang /D <macro=value> here