ui/common/context.c

branch
newapi
changeset 387
80edb1a93f7a
parent 379
958bae372271
equal deleted inserted replaced
386:a91e3f6db7cf 387:80edb1a93f7a
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