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

Method beforeDim

src/simulate/simulate_gc.cpp:355–367  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

353 popRange();
354 }
355 virtual void beforeDim ( char * pa, TypeInfo * ti ) override {
356 auto tsize = ti->size;
357 DAS_ASSERT(tsize==uint32_t(getTypeSize(ti)));
358 PtrRange rdata(pa, tsize );
359 if ( reportHeap && tsize && markRange(rdata) ) {
360 if ( describe_ptr(pa, tsize, (ti->flags & TypeInfo::flag_isHandled)!=0) ) {
361 describeInfo(ti);
362 ReportHistory();
363 tp << "DIM " << getTypeInfoMangledName(ti) << "\n";
364 }
365 }
366 pushRange(rdata);
367 }
368 virtual void afterDim ( char *, TypeInfo * ) override {
369 popRange();
370 }

Callers

nothing calls this directly

Calls 2

getTypeSizeFunction · 0.85
getTypeInfoMangledNameFunction · 0.85

Tested by

no test coverage detected