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

Function MallocWrapper

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

Source from the content-addressed store, hash-verified

1468// - DLL users: read comments above.
1469#ifndef IMGUI_DISABLE_DEFAULT_ALLOCATORS
1470static void* MallocWrapper(size_t size, void* user_data) { IM_UNUSED(user_data); return malloc(size); }
1471static void FreeWrapper(void* ptr, void* user_data) { IM_UNUSED(user_data); free(ptr); }
1472#else
1473static 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