RainwayApp / node-clangffi

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

Function decl with void argument fails #16

Closed bengreenier closed 2 years ago

bengreenier commented 2 years ago

If given a header with the following:

typedef void (*MyFunctionPointer)(void);

Then clangffi will generate:

export type MyFunctionPointer(arg0:) => void;

which is invalid. It should instead generate:

export type MyFunctionPointer() => void;