ui/common/context.c

changeset 87
5360027fb282
parent 77
5de33c2d94c6
equal deleted inserted replaced
86:8e7c57c23133 87:5360027fb282
555 555
556 cxListAdd(ctx->group_widgets, &gw); 556 cxListAdd(ctx->group_widgets, &gw);
557 } 557 }
558 558
559 UIEXPORT void *ui_allocator(UiContext *ctx) { 559 UIEXPORT void *ui_allocator(UiContext *ctx) {
560 return ctx ? (void*)ctx->allocator : NULL; 560 return (void*)ctx->allocator;
561 }
562
563 void* ui_cx_mempool(UiContext *ctx) {
564 return ctx->mp;
561 } 565 }
562 566
563 void* ui_malloc(UiContext *ctx, size_t size) { 567 void* ui_malloc(UiContext *ctx, size_t size) {
564 return ctx ? cxMalloc(ctx->allocator, size) : NULL; 568 return ctx ? cxMalloc(ctx->allocator, size) : NULL;
565 } 569 }

mercurial