mirror of
https://github.com/FRRouting/frr.git
synced 2025-04-30 13:37:17 +02:00
lib: Adopt Lua stuff for Lua 5.4
lua_pcall() returns LUA_ERRGCMM in 5.3 which is already deprecated. The constant LUA_ERRGCMM was removed. Errors in finalizers are never propagated; instead, they generate a warning. Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
This commit is contained in:
parent
708f2ca620
commit
a39aa3eb37
|
@ -248,10 +248,12 @@ int _frrscript_call_lua(struct lua_function_state *lfs, int nargs)
|
|||
zlog_err("Lua hook call '%s' : error handler error: %s",
|
||||
lfs->name, lua_tostring(lfs->L, -1));
|
||||
break;
|
||||
#if defined(LUA_VERSION_NUM) && LUA_VERSION_NUM <= 503
|
||||
case LUA_ERRGCMM:
|
||||
zlog_err("Lua hook call '%s' : garbage collector error: %s",
|
||||
lfs->name, lua_tostring(lfs->L, -1));
|
||||
break;
|
||||
#endif
|
||||
default:
|
||||
zlog_err("Lua hook call '%s' : unknown error: %s", lfs->name,
|
||||
lua_tostring(lfs->L, -1));
|
||||
|
|
Loading…
Reference in a new issue