ui/common/context.c

changeset 87
5360027fb282
parent 77
5de33c2d94c6
--- a/ui/common/context.c	Fri Nov 15 21:50:20 2024 +0100
+++ b/ui/common/context.c	Sun Nov 17 15:19:32 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