MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / luaL_setfuncs

Function luaL_setfuncs

emmy_debugger/src/api/lua_api.cpp:29–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27}
28#ifndef EMMY_LUA_JIT_SUPPORT_LUA_SETFUNCS
29void 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
39void lua_pushglobaltable(lua_State* L)

Callers 1

luaopen_emmy_coreFunction · 0.50

Calls 3

lua_pushvalueFunction · 0.50
lua_pushcclosureFunction · 0.50
lua_setfieldFunction · 0.50

Tested by

no test coverage detected