mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-20 04:30:06 +01:00
lua: add select to the list of allowed functions
This function is safe (and was already documented) so let's make sure it's available. Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1354>
This commit is contained in:
parent
4ffd8ab544
commit
ad6f580b6d
1 changed files with 2 additions and 2 deletions
|
|
@ -1222,7 +1222,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", "xpcall",
|
||||
"print", "select", "tonumber", "tostring", "type", "xpcall",
|
||||
};
|
||||
ARRAY_FOR_EACH(allowed_funcs, func) {
|
||||
lua_getglobal(L, *func);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue