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

Function db_getmetatable

third-party/lua-5.4.6/src/ldblib.c:47–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45
46
47static int db_getmetatable (lua_State *L) {
48 luaL_checkany(L, 1);
49 if (!lua_getmetatable(L, 1)) {
50 lua_pushnil(L); /* no metatable */
51 }
52 return 1;
53}
54
55
56static int db_setmetatable (lua_State *L) {

Callers

nothing calls this directly

Calls 3

luaL_checkanyFunction · 0.70
lua_getmetatableFunction · 0.70
lua_pushnilFunction · 0.70

Tested by

no test coverage detected