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

Function printobj

Dependencies/lua/src/ltests.c:314–321  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

312
313
314static void printobj (global_State *g, GCObject *o) {
315 printf("||%s(%p)-%c%c(%02X)||",
316 ttypename(novariant(o->tt)), (void *)o,
317 isdead(g,o) ? 'd' : isblack(o) ? 'b' : iswhite(o) ? 'w' : 'g',
318 "ns01oTt"[getage(o)], o->marked);
319 if (o->tt == LUA_VSHRSTR || o->tt == LUA_VLNGSTR)
320 printf(" '%s'", getstr(gco2ts(o)));
321}
322
323
324void lua_printobj (lua_State *L, struct GCObject *o) {

Callers 3

lua_printobjFunction · 0.85
testobjrefFunction · 0.85
gc_printobjFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected