MCPcopy Create free account
hub / github.com/LibreSprite/LibreSprite / on_alloc_function

Function on_alloc_function

src/script/duktape/engine.cpp:30–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28 }
29
30 void* on_alloc_function(void* udata, duk_size_t size) {
31 if (size)
32 return base_malloc(size);
33 else
34 return nullptr;
35 }
36
37 void* on_realloc_function(void* udata, void* ptr, duk_size_t size) {
38 if (!ptr) {

Callers

nothing calls this directly

Calls 1

base_mallocFunction · 0.85

Tested by

no test coverage detected