lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> >     luaL_loadfile( m_hPrivateState, "teste.lua" );
> 
> You need to lua_pcall the chunk returned by luaL_loadfile here.

Or use luaL_dofile instead of luaL_loadfile, which does luaL_loadfile+lua_pcall.
Be sure to check the return code in case there are errors in the file (either
syntax errors or execution errors).