[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Post error call core strategy
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Mon, 17 Jan 2011 13:34:45 -0200
> What is the right thing to code following an error luaG_runerror call in
> the core?
A call to luaG_runerror ends at a call to luaD_throw, which either returns
to the host via longjmp, calls the panic functions or exits the program.
See http://www.lua.org/source/5.1/ldo.c.html#luaD_throw
If you want the host to continue, use lua_pcall or lua_cpcall.