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

Function gc_init_break_on_id

src/misc/gc_node.cpp:138–143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136 // when a specific gc_id is assigned. Useful for tracing where a leaked node was born.
137
138 static uint64_t gc_init_break_on_id() {
139 if ( auto env = getenv("DAS_GC_BREAK_ON_ID") ) {
140 return strtoull(env, nullptr, 0);
141 }
142 return 0;
143 }
144
145 static void gc_check_break ( uint64_t id ) {
146 if ( gc_break_on_id == 0 ) {

Callers 1

gc_check_breakFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected