[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: When are global names registered within th VM?
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Mon, 16 Mar 2009 07:18:50 -0300
> I compile the scripts within my engine using luaL_loadstring.
You need to lua_pcall after luaL_loadstring. Or use luaL_dostring.
"This function only loads the chunk; it does not run it."
http://www.lua.org/manual/5.1/manual.html#luaL_loadstring