MCPcopy Create free account
hub / github.com/degeneratehyperbola/NEPS / MallocWrapper

Function MallocWrapper

shared_lib/imgui/imgui.cpp:961–961  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

959// - DLL users: read comments above.
960#ifndef IMGUI_DISABLE_DEFAULT_ALLOCATORS
961static void* MallocWrapper(size_t size, void* user_data) { IM_UNUSED(user_data); return malloc(size); }
962static void FreeWrapper(void* ptr, void* user_data) { IM_UNUSED(user_data); free(ptr); }
963#else
964static void* MallocWrapper(size_t size, void* user_data) { IM_UNUSED(user_data); IM_UNUSED(size); IM_ASSERT(0); return NULL; }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected