Mercurial > lcfOS
view kernel/src/memory.c3 @ 389:2ec730e45ea1
Added check for recursive struct
author | Windel Bouwman |
---|---|
date | Fri, 16 May 2014 12:29:31 +0200 |
parents | 6df89163e114 |
children | 6ae782a085e0 |
line wrap: on
line source
module memory; import arch; import io; var int ptr; function void init() { ptr = 0; // io.print2("ptr = ", ptr); // TODO } function u8* Alloc(int size) { ptr = ptr + size; return cast<u8*>(ptr); }