Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
jna unsupported datatypes but jnaerator converts them anyways #289
On windows, there are data types that seem to get mapped strangely (well legacy crap). Perhaps JNAerator should reject
typedef BOOL int; // http://msdn.microsoft.com/en-us/library/aa383751(v=vs.85).aspx
void foo(BOOL); // maybe map to void foo(int int1);
gets converted to this:
added a commit
Mar 20, 2012
Hi @johnny-tc ,
Thanks for your report.
I've fixed the mapping of C++ bool type to byte for JNA target runtime, although this will obviously only work for functions in extern "C" blocks (or with the exact Mangling annotation).