view src/include/allocate.h @ 56:c469c5ed5b4d

modify syntax
author Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp>
date Tue, 16 Jun 2015 13:40:08 +0900
parents 868c2918b634
children 368306e1bfed
line wrap: on
line source

__code allocate();
__code meta_allocate();
extern __code meta();

__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]);
}