We call this while creating new globals is disabled (because we only want to * expose these functions for SPs in the _SP.sys namespace). Use raw writes to * avoid triggering the metatable methods that block it. */
| 760 | * expose these functions for SPs in the _SP.sys namespace). Use raw writes to |
| 761 | * avoid triggering the metatable methods that block it. */ |
| 762 | void init_sys_funcs(Lua L) { |
| 763 | lua_getglobal(L, "_G"); |
| 764 | lua_pushstring(L, "sys"); |
| 765 | lua_newtable(L); |
| 766 | luaL_openlib(L, NULL, sys_funcs, 0); |
| 767 | lua_rawset(L, -3); |
| 768 | lua_pop(L, 1); |
| 769 | } |
no test coverage detected