Troubleshooting
Missing Clang Library
Nifty uses libclang to analyze the header files but the library is not found. Point your LD_LIBRARY_PATH
environment variable to the folder containing libclang.so
Anonymous Structs
Nifty currently does not support anonymous structs. This means, that they are ignored while parsing the header files. Since Nifty checks that the type information for the functions is complete and removes incomplete definition, functions depending on anonymous functions are also removed. The same is true for incomplete types. An exception are pointers to those types. While Nifty will not be able to dereference those pointers, it can handle them as pointers and pass or get them from functions.
To solve the issue with anonymous functions, just give them a name.
Function Pointer and Callback Functions
Nifty handles function pointers by defaulting their type to void *
. This means, that no typechecking or advanced handling
(like calling a function associated to a function pointer) are supported. However, function pointers can like any other pointer
be optained and passed to other functions.
Variable Argument lists
Nifty currently does not support variable argument lists of C functions. The variabel arguments are either missing (…) or the function is not wrapped (va_list).