lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


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