MCPcopy Create free account
hub / github.com/Wemino/EchoPatch / MallocWrapper

Function MallocWrapper

include/imgui/imgui.cpp:1445–1445  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1443// - DLL users: read comments above.
1444#ifndef IMGUI_DISABLE_DEFAULT_ALLOCATORS
1445static void* MallocWrapper(size_t size, void* user_data) { IM_UNUSED(user_data); return malloc(size); }
1446static void FreeWrapper(void* ptr, void* user_data) { IM_UNUSED(user_data); free(ptr); }
1447#else
1448static 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