MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / db_setmetatable

Function db_setmetatable

3rd/lua-5.4.3/src/ldblib.c:56–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54
55
56static int db_setmetatable (lua_State *L) {
57 int t = lua_type(L, 2);
58 luaL_argexpected(L, t == LUA_TNIL || t == LUA_TTABLE, 2, "nil or table");
59 lua_settop(L, 2);
60 lua_setmetatable(L, 1);
61 return 1; /* return 1st argument */
62}
63
64
65static int db_getuservalue (lua_State *L) {

Callers

nothing calls this directly

Calls 3

lua_typeFunction · 0.85
lua_settopFunction · 0.85
lua_setmetatableFunction · 0.85

Tested by

no test coverage detected