[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Jumping out of a function without error semantics
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Mon, 28 Jan 2013 18:27:06 -0200
> Is there a way to return back to lua_pcall with success from C?
lua_error is the only way to abort a Lua transaction. However, note that
you can use *any* Lua value a an error "message", and so you can signal
success using a suitable Lua value. In any case, lua_pcall will fail,
that is, will not return LUA_OK.