| 27 | } |
| 28 | #ifndef EMMY_LUA_JIT_SUPPORT_LUA_SETFUNCS |
| 29 | void luaL_setfuncs(lua_State* L, const luaL_Reg* l, int nup) { |
| 30 | for (; l->name != nullptr; l++) { |
| 31 | for (int i = 0; i < nup; i++) |
| 32 | lua_pushvalue(L, -nup); |
| 33 | lua_pushcclosure(L, l->func, nup); |
| 34 | lua_setfield(L, -(nup + 2), l->name); |
| 35 | } |
| 36 | } |
| 37 | #endif |
| 38 | |
| 39 | void lua_pushglobaltable(lua_State* L) |
no test coverage detected