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

Function db_setmetatable

third-party/lua-5.2.4/src/ldblib.c:45–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43
44
45static int db_setmetatable (lua_State *L) {
46 int t = lua_type(L, 2);
47 luaL_argcheck(L, t == LUA_TNIL || t == LUA_TTABLE, 2,
48 "nil or table expected");
49 lua_settop(L, 2);
50 lua_setmetatable(L, 1);
51 return 1; /* return 1st argument */
52}
53
54
55static int db_getuservalue (lua_State *L) {

Callers

nothing calls this directly

Calls 3

lua_typeFunction · 0.70
lua_settopFunction · 0.70
lua_setmetatableFunction · 0.70

Tested by

no test coverage detected