Mercurial > lcfOS
view kernel/memory.c3 @ 313:04cf4d26a3bc
Added constant function
author | Windel Bouwman |
---|---|
date | Wed, 18 Dec 2013 18:02:26 +0100 |
parents | 6753763d3bec |
children |
line wrap: on
line source
module memory; import process; var int ptr; function u8* Alloc(int size) { ptr = ptr + size; return cast<u8*>(ptr); }