|
From: William S F. <ws...@fu...> - 2015-04-05 11:25:45
|
On 31 March 2015 at 22:33, David Froger <dav...@in...> wrote:
>> > __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 *);
> }
Please log this as a bug.
William
|