|
From: David F. <dav...@in...> - 2015-03-31 21:33:59
|
> > __cdecl may be the problem, does something like this work?
> >
> > swig -c++ -python -D__cdecl= steamworks.i
>
> No such luck. Same error.
>
> It looks like that should work, as these are the four lines before the one provoking the error:
>
> // function prototype
> #if defined( POSIX )
> #define __cdecl
> #endif
I just made a test, seems that SWIG fail to parse:
extern "C" typedef void (*SteamAPIWarningMessageHook_t)(int, const char *);
but can parse:
extern "C" {
typedef void (*SteamAPIWarningMessageHook_t)(int, const char *);
}
|