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

Function getgclist

3rd/lua-5.4.3/src/lgc.c:125–139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

123
124
125static GCObject **getgclist (GCObject *o) {
126 switch (o->tt) {
127 case LUA_VTABLE: return &gco2t(o)->gclist;
128 case LUA_VLCL: return &gco2lcl(o)->gclist;
129 case LUA_VCCL: return &gco2ccl(o)->gclist;
130 case LUA_VTHREAD: return &gco2th(o)->gclist;
131 case LUA_VPROTO: return &gco2p(o)->gclist;
132 case LUA_VUSERDATA: {
133 Udata *u = gco2u(o);
134 lua_assert(u->nuvalue > 0);
135 return &u->gclist;
136 }
137 default: lua_assert(0); return 0;
138 }
139}
140
141
142/*

Callers 2

propagatemarkFunction · 0.85
correctgraylistFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected