|
From: David F. <dav...@in...> - 2015-04-05 19:07:23
|
Hi,
I opened a issue with an example here:
https://github.com/swig/swig/issues/375
David
Quoting William S Fulton (2015-04-05 13:34:18)
> 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
|