MCPcopy Create free account
hub / github.com/F-Stack/f-stack / luaF_newupval

Function luaF_newupval

app/redis-6.2.6/deps/lua/src/lfunc.c:44–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42
43
44UpVal *luaF_newupval (lua_State *L) {
45 UpVal *uv = luaM_new(L, UpVal);
46 luaC_link(L, obj2gco(uv), LUA_TUPVAL);
47 uv->v = &uv->u.value;
48 setnilvalue(uv->v);
49 return uv;
50}
51
52
53UpVal *luaF_findupval (lua_State *L, StkId level) {

Callers 1

f_parserFunction · 0.70

Calls 1

luaC_linkFunction · 0.85

Tested by

no test coverage detected