[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Trigger panic for testing custom error handler
- From: Noah Watkins <jayhawk@...>
- Date: Tue, 22 Jan 2013 10:50:32 -0800
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
>