|
That's a unique idea, thanks... But it is not that different from making a separate 'lua51-sdl' binary, just for the sake of SDL initialization. The end result remains, which is SDL's need to "hijack" the main loop (and this issue is more of SDL's than Lua's, so let's stop?).
:) -asko Alex Queiroz kirjoitti 30.4.2006 kello 23.49:
Hallo, On 4/30/06, askok@dnainternet.net <askok@dnainternet.net> wrote:On certain systems, initialization of SDL library is done before main() is called, by 'hijacking' main into the SDL codebase (-lsdlmain). This is not possible from within an extension module, since a main loopis already up and running.Maybe you could use a wrapper script that sets LD_PRELOAD and then call the Lua executabe. Not beautiful, but... -- -alex http://www.ventonegro.org/