MCPcopy Create free account
hub / github.com/GaijinEntertainment/daScript / gc_describe_impl

Function gc_describe_impl

src/ast/ast_gc_report.cpp:46–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44 // ---- describe hook (installed into gc_node base) ----
45
46 static void gc_describe_impl ( const gc_node * node, char * buf, int buflen ) {
47 const LineInfo * li = gc_node_at(node);
48 if ( li && li->fileInfo ) {
49 snprintf(buf, buflen, "%s:%u:%u", li->fileInfo->name.c_str(), li->line, li->column);
50 } else {
51 buf[0] = 0;
52 }
53 }
54
55 // The hook variable is statically zero-initialized before any dynamic init, so setting
56 // it here (dynamic init) has no ordering hazard. gc_report is a manual diagnostic and is

Callers

nothing calls this directly

Calls 2

gc_node_atFunction · 0.85
c_strMethod · 0.45

Tested by

no test coverage detected