view src/include/allocate.h @ 480:39b5df2d1c93

Change loopCounter type from struct LoopCounter to Integer for TaskManagerImpl
author Tatsuki IHA <innparusu@cr.ie.u-ryukyu.ac.jp>
date Thu, 28 Dec 2017 19:54:28 +0900
parents 368306e1bfed
children
line wrap: on
line source

__code allocate();
__code meta_allocate();

__code allocate(struct Context* context) {
    goto meta_allocate(context);
}

__code meta_allocate(struct Context* context) {
    context->data[++context->dataNum] = context->heap;
    context->heap += context->data[0]->allocate.size;

    goto meta(context, context->next[--context->current]);
}