|
From: David F. <dav...@in...> - 2015-03-31 21:00:27
|
Quoting Carlos Liam (2015-03-31 22:26:46)
> Thank you for helping me get this far.
>
> I added the %include line and tried using the -includeall option (since steam_api.h #includes many other header files), but that gave me errors regarding finding system headers (i.e. stdio.h). I'm currently trying to manually add each header as an %include in the index file, but SWIG is throwing an error when parsing one of them.
>
> /Users/aarzee/Documents/steamworks-sdk/public/steam/isteamclient.h:71: Error: Syntax error in input(1).
>
> The offending line is as follows:
>
> extern "C" typedef void (__cdecl *SteamAPIWarningMessageHook_t)(int, const char *);
>
> The headers that isteamclient.h #includes (steamtypes.h, steamuniverse.h via steamclientpublic.h, and steamclientpublic.h) are %included above where isteamclient.h is %included.
__cdecl may be the problem, does something like this work?
swig -c++ -python -D__cdecl= steamworks.i
|