MCPcopy Create free account
hub / github.com/Wassimulator/CactusViewer / UI_malloc

Function UI_malloc

include/ui/ui_core.h:348–353  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

346
347
348void *UI_malloc(UI_Context *ctx, size_t size) {
349 ctx->debug.allocated_bytes += size;
350 void * result = malloc(size);
351 UI_assert(result);
352 return result;
353}
354
355void UI_free(UI_Context *ctx, size_t size, void* address) {
356 ctx->debug.allocated_bytes -= size;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected