ui/common/context.c

branch
newapi
changeset 387
80edb1a93f7a
parent 379
958bae372271
--- a/ui/common/context.c	Sun Nov 17 10:37:06 2024 +0100
+++ b/ui/common/context.c	Sun Nov 17 15:21:50 2024 +0100
@@ -557,7 +557,11 @@
 }
 
 UIEXPORT void *ui_allocator(UiContext *ctx) {
-    return ctx ? (void*)ctx->allocator : NULL;
+    return (void*)ctx->allocator;
+}
+
+void* ui_cx_mempool(UiContext *ctx) {
+    return ctx->mp;
 }
 
 void* ui_malloc(UiContext *ctx, size_t size) {

mercurial