lua-users home
lua-l archive

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


> What about failures that occur prior to a lua_pcall, such as a memory allocation failure during setup: create new state, luaL_loadstring (memory allocation error) ?

Just start *everything* with a (single) lua_pcall. See 
	http://www.lua.org/source/5.2/lua.c.html#main