Added array type

This commit is contained in:
Eduard Urbach 2025-02-09 20:25:37 +01:00
parent bb01070950
commit c0ffddaba8
Signed by: eduard
GPG key ID: 49226B848C78F6C8
13 changed files with 71 additions and 22 deletions

View file

@ -1,6 +1,6 @@
import sys
alloc(length Int) -> Pointer {
alloc(length Int) -> []Int8 {
x := sys.mmap(0, length+8, 0x1|0x2, 0x02|0x20)
if x < 0x1000 {