MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / db_setmetatable

Function db_setmetatable

Source/Misc/lua/src/lua.c:11554–11561  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11552
11553
11554static int db_setmetatable (lua_State *L) {
11555int t = lua_type(L, 2);
11556luaL_argcheck(L, t == LUA_TNIL || t == LUA_TTABLE, 2,
11557"nil or table expected");
11558lua_settop(L, 2);
11559lua_pushboolean(L, lua_setmetatable(L, 1));
11560return 1;
11561}
11562
11563
11564static int db_getfenv (lua_State *L) {

Callers

nothing calls this directly

Calls 4

lua_typeFunction · 0.85
lua_settopFunction · 0.85
lua_pushbooleanFunction · 0.85
lua_setmetatableFunction · 0.85

Tested by

no test coverage detected