lua-users home
lua-l archive

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


Ahh, got it. Thanks, that makes a lot of sense.

-Noah

On Jan 22, 2013, at 10:48 AM, Luiz Henrique de Figueiredo <lhf@tecgraf.puc-rio.br> wrote:

>> 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
>