| 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 |
nothing calls this directly
no test coverage detected