[SDL] Mainline vs Embedded
Asko Kauppi
askok at dnainternet.net
Tue Aug 1 15:31:36 PDT 2006
Hey.
Could you send or point me to the code snippet in question?
I'm in charge of Lua SDL binding, and this issue of main ownership is
biting there, too. Making me need separate Lua binary on OS X if SDL
support is required. Perhaps I could simply attach the support within
the SDL module, instead.
Thanks, - asko
Ulrich von Zadow kirjoitti 1.3.2006 kello 12.03:
> Sam Lantinga wrote:
>>> Is there any reason that this replicated code couldn't be
>>> conditionally
>>> called from SDL_Init? If not, would there be any objection to
>>> such a patch
>>> being submitted?
>>
>> It's generally code that can't be called from SDL_Init(), but it's
>> code that
>> you can call from your main application - that's why the various
>> initialization
>> functions are defined in SDL_main.h
>
> I think the issue at the moment is that there's some code in the OS
> X main()
> that doesn't conform to this (the mail I sent on Feb. 23 contains
> precisely that
> code). Currently, just leaving away SDL_main is broken on OS X
> because of this
> issue. This code could be moved to SDL_Init without causing
> problems - I'm
> executing it directly before SDL_Init in libavg.
>
> Anyway, I'd already asked Sam if a patch for this was ok and gotten
> a yes, but I
> probably won't have the time to do it, so...
>
> Regards,
>
> Uli
>
> _______________________________________________
> SDL mailing list
> SDL at libsdl.org
> http://www.libsdl.org/mailman/listinfo/sdl
More information about the SDL
mailing list