view kernel/src/memory.c3 @ 371:9c95f93f5b7a

Python 3.2 compatible issues
author Windel Bouwman
date Fri, 21 Mar 2014 12:01:19 +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);
}