[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua C API questions
- From: Dibyendu Majumdar <mobile@...>
- Date: Sat, 11 Apr 2015 03:38:21 +0100
On 11 April 2015 at 03:30, Rena <hyperhacker@gmail.com> wrote:
>> Is it acceptable to call luaG_runerror() in an API function like
>> lua_rawset() or lua_rawseti()?
> Why do that as opposed to lua_error() or luaL_error()?
Calling luaL_error() breaks the rule - core API cannot depend upon non-core API.
Calling lua_error() breaks the rule 'No function with a LUA_API should
ever be called from inside the core, too'
Regards