lua: remove the unpack global function

Looks like 5.1 and later has unpack as table.unpack().

Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1354>
This commit is contained in:
Peter Hutterer 2025-11-03 14:44:44 +10:00 committed by Marge Bot
parent 45878c3aac
commit 4fe3225050

View file

@ -1219,7 +1219,7 @@ libinput_lua_plugin_init_lua(struct libinput *libinput,
luaopen_base(L); luaopen_base(L);
static const char *allowed_funcs[] = { static const char *allowed_funcs[] = {
"assert", "error", "ipairs", "next", "pcall", "pairs", "assert", "error", "ipairs", "next", "pcall", "pairs",
"print", "tonumber", "tostring", "type", "unpack", "xpcall", "print", "tonumber", "tostring", "type", "xpcall",
}; };
ARRAY_FOR_EACH(allowed_funcs, func) { ARRAY_FOR_EACH(allowed_funcs, func) {
lua_getglobal(L, *func); lua_getglobal(L, *func);