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

Method beforeVariant

src/simulate/simulate_gc.cpp:453–466  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

451 history.pop_back();
452 }
453 virtual void beforeVariant ( char * ps, TypeInfo * ti ) override {
454 char * pa = ps;
455 auto tsize = ti->size;
456 DAS_ASSERT(tsize==uint32_t(getTypeSize(ti)));
457 PtrRange rdata(pa, tsize);
458 if ( reportHeap && tsize && markRange(rdata) ) {
459 if ( describe_ptr(pa, tsize) ) {
460 describeInfo(ti);
461 ReportHistory();
462 tp << "VARIANT " << getTypeInfoMangledName(ti) << "\n";
463 }
464 }
465 pushRange(rdata);
466 }
467 virtual void afterVariant ( char *, TypeInfo * ) override {
468 popRange();
469 }

Callers

nothing calls this directly

Calls 2

getTypeSizeFunction · 0.85
getTypeInfoMangledNameFunction · 0.85

Tested by

no test coverage detected