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

Function das_context_allocate

src/misc/daScriptC.cpp:1045–1048  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1043// --- Context heap ---
1044
1045void * das_context_allocate ( das_context * context, uint32_t size ) {
1046 if ( !size ) return nullptr;
1047 return ((Context *)context)->allocate(size, nullptr);
1048}
1049
1050void * das_context_reallocate ( das_context * context, void * ptr, uint32_t old_size, uint32_t new_size ) {
1051 // The runtime allocator's reallocate path doesn't handle new_size==0 — it

Callers 2

Calls 1

allocateMethod · 0.45

Tested by

no test coverage detected