[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: When are global names registered within th VM?
- From: "kathrin_69@..." <kathrin_69@...>
- Date: Mon, 16 Mar 2009 13:22:56 +0100
Luiz Henrique de Figueiredo wrote:
Yea, but I don't want to execute the (whole / main) chunk, I just want
to execute a function called START as the main entry point of the script.
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."
If no function START is defined, I want to do nothing / revoke execution.
How can I do this?