Re: Lua C API questions
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Lua C API questions
- From: Rena <hyperhacker@...>
- Date: 2015年4月10日 22:30:14 -0400
On Fri, Apr 10, 2015 at 10:24 PM, Dibyendu Majumdar
<mobile@majumdar.org.uk> wrote:
> Is it acceptable to call luaG_runerror() in an API function like
> lua_rawset() or lua_rawseti()?
> The scenario is that the value or key is invalid (i.e. allowing it
> would corrupt the type system).
>
> Thanks and Regards
> Dibyendu
>
Why do that as opposed to lua_error() or luaL_error()?
--
Sent from my Game Boy.