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

Method beforeRef

src/simulate/simulate_gc.cpp:411–423  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

409 popRange();
410 }
411 virtual void beforeRef ( char * pa, TypeInfo * ti ) override {
412 auto tsize = ti->size;
413 DAS_ASSERT(tsize==uint32_t(getTypeSize(ti)));
414 PtrRange rdata(pa, tsize );
415 if ( reportHeap && tsize && markRange(rdata) ) {
416 if ( describe_ptr(pa, tsize) ) {
417 describeInfo(ti);
418 ReportHistory();
419 tp << "& " << getTypeInfoMangledName(ti) << "\n";
420 }
421 }
422 pushRange(rdata);
423 }
424 virtual void afterRef ( char *, TypeInfo * ) override {
425 popRange();
426 }

Callers

nothing calls this directly

Calls 2

getTypeSizeFunction · 0.85
getTypeInfoMangledNameFunction · 0.85

Tested by

no test coverage detected