mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-20 04:30:06 +01:00
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:
parent
45878c3aac
commit
4fe3225050
1 changed files with 1 additions and 1 deletions
|
|
@ -1219,7 +1219,7 @@ libinput_lua_plugin_init_lua(struct libinput *libinput,
|
|||
luaopen_base(L);
|
||||
static const char *allowed_funcs[] = {
|
||||
"assert", "error", "ipairs", "next", "pcall", "pairs",
|
||||
"print", "tonumber", "tostring", "type", "unpack", "xpcall",
|
||||
"print", "tonumber", "tostring", "type", "xpcall",
|
||||
};
|
||||
ARRAY_FOR_EACH(allowed_funcs, func) {
|
||||
lua_getglobal(L, *func);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue