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

Function allocateIterator

include/daScript/simulate/simulate.h:359–364  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

357 void onFree ( void * ptr, const LineInfo & at );
358
359 __forceinline char * allocateIterator ( uint64_t size, const char * iterName, const LineInfo * at ) {
360 auto aptr = heap->impl_allocateIterator(size, iterName);
361 if ( !aptr ) throw_out_of_memory(false, size + 16, at);
362 if ( instrumentAllocations ) onAllocate(aptr - 16, size + 16, at ? *at : LineInfo());
363 return aptr;
364 }
365
366 __forceinline void freeIterator ( char * ptr, const LineInfo * at ) {
367 if ( instrumentAllocations ) onFree(ptr - 16, at ? *at : LineInfo());

Callers

nothing calls this directly

Calls 2

impl_allocateIteratorMethod · 0.80
LineInfoFunction · 0.70

Tested by

no test coverage detected