mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Add Lua bitop library (#9847)
This commit is contained in:
parent
7a1464d783
commit
b9051386ae
8 changed files with 251 additions and 1 deletions
|
@ -106,6 +106,7 @@ void ScriptApiSecurity::initializeSecurity()
|
|||
"string",
|
||||
"table",
|
||||
"math",
|
||||
"bit"
|
||||
};
|
||||
static const char *io_whitelist[] = {
|
||||
"close",
|
||||
|
@ -298,6 +299,7 @@ void ScriptApiSecurity::initializeSecurityClient()
|
|||
"string",
|
||||
"table",
|
||||
"math",
|
||||
"bit",
|
||||
};
|
||||
static const char *os_whitelist[] = {
|
||||
"clock",
|
||||
|
@ -834,4 +836,3 @@ int ScriptApiSecurity::sl_os_remove(lua_State *L)
|
|||
lua_call(L, 1, 2);
|
||||
return 2;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue