view kernel/src/memory.c3 @ 368:d2ddfe134c48

Remove yield from for python < 3.3
author Windel Bouwman
date Fri, 21 Mar 2014 11:21:50 +0100
parents 577ed7fb3fe4
children 9667d78ba79e
line wrap: on
line source

module memory;

import archmem;

var int ptr;

function void init()
{
    archmem.init();
    // TODO
}

function u8* Alloc(int size)
{
    ptr = ptr + size;
    return cast<u8*>(ptr);
}