RainwayApp / node-clangffi

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

fix(primitives): Better primitive support #13

Closed bengreenier closed 2 years ago

bengreenier commented 2 years ago

fixes #4 by ensuring the lookup tables for "builtins" are exhaustive, and based on https://en.wikipedia.org/wiki/C_data_types and https://github.com/node-ffi-napi/ref-napi/blob/latest/lib/ref.js#L835.

This will mean we need to allow additional symbols to generate libclang-bindings - specifically time_t which libclang uses but isn't a built-in.