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

Function ll_seeall

third-party/lua-5.2.4/src/loadlib.c:604–614  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

602
603
604static int ll_seeall (lua_State *L) {
605 luaL_checktype(L, 1, LUA_TTABLE);
606 if (!lua_getmetatable(L, 1)) {
607 lua_createtable(L, 0, 1); /* create new metatable */
608 lua_pushvalue(L, -1);
609 lua_setmetatable(L, 1);
610 }
611 lua_pushglobaltable(L);
612 lua_setfield(L, -2, "__index"); /* mt.__index = _G */
613 return 0;
614}
615
616#endif
617/* }====================================================== */

Callers

nothing calls this directly

Calls 7

luaL_checktypeFunction · 0.70
lua_getmetatableFunction · 0.70
lua_createtableFunction · 0.70
lua_pushvalueFunction · 0.70
lua_setmetatableFunction · 0.70
lua_setfieldFunction · 0.70
lua_pushglobaltableFunction · 0.50

Tested by

no test coverage detected