MCPcopy Create free account
hub / github.com/Overload-Technologies/Overload / getref

Function getref

Dependencies/lua/src/ltests.c:1064–1070  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1062}
1063
1064static int getref (lua_State *L) {
1065 int level = lua_gettop(L);
1066 lua_rawgeti(L, LUA_REGISTRYINDEX, luaL_checkinteger(L, 1));
1067 cast_void(level); /* to avoid warnings */
1068 lua_assert(lua_gettop(L) == level+1);
1069 return 1;
1070}
1071
1072static int unref (lua_State *L) {
1073 int level = lua_gettop(L);

Callers

nothing calls this directly

Calls 3

lua_gettopFunction · 0.85
lua_rawgetiFunction · 0.85
luaL_checkintegerFunction · 0.85

Tested by

no test coverage detected