1 Oct 2002 01:02
Re: efficient calling of lua code
Jani Kajala <jani <at> sumea.com>
2002-09-30 23:02:36 GMT
2002-09-30 23:02:36 GMT
> But how do I correctly call this not explicitly defined "top level > function" containing all code of my script? You can't, but you can move the same code inside a function and call that instead. Jani ----- Original Message ----- From: "Jens Hassler" <lukey <at> gmx.de> To: "Multiple recipients of list" <lua-l <at> tecgraf.puc-rio.br> Sent: Monday, September 30, 2002 7:45 PM Subject: Re: efficient calling of lua code > Hi Jani, > > > Just define some functions in Lua code, dobuffer only once, and call > > the Lua functions from C++ code... > > Okay, I know how to call Lua functions from C++, I do this in my game, > too. > > But how do I correctly call this not explicitly defined "top level > function" containing all code of my script? > > Thx, > Jens

RSS Feed