|
From: William S F. <ws...@fu...> - 2015-04-05 11:35:06
|
On 5 April 2015 at 12:24, William S Fulton <ws...@fu...> wrote:
> 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.
Actually, I can't reproduce this. If you can put together a completely
stand alone example, then let us know, otherewise check your code.
William
|