bottlenoselabs / c2cs

Generate C# bindings from a C header.
MIT License
250 stars 18 forks source link

Fix type alias function pointers for abstract syntax tree #138

Closed lithiumtoast closed 1 year ago

lithiumtoast commented 1 year ago

Found when generating bindings for Windows for SDL3, the following function pointer was not handled correctly when reading the abstract syntax tree:

typedef uintptr_t (__cdecl * pfnSDL_CurrentBeginThread)
                   (void *, unsigned, unsigned (__stdcall *func)(void *),
                    void * /*arg*/, unsigned, unsigned * /* threadID */);