Add ';;' operator, more windows decls

This commit is contained in:
Krzosa Karol
2022-06-14 20:12:52 +02:00
parent 6e56b789e9
commit 107c8435b7
3 changed files with 55 additions and 9 deletions

View File

@@ -1,9 +1,15 @@
#import "base.kl"
os :: #import "os.kl"
// #import "base.kl"
#load "Windows.kl"
Vec2I :: struct ;; x: S32; y: S32
create_bitmap :: (size: Vec2I)
pass
main :: (argc: int, argv: **char): int
memory := os.reserve(size = 10000)
os.commit(&memory, 1000)
os.release(&memory)
os.print("Hello world")
pass
// memory := os.reserve(size = 10000)
// os.commit(&memory, 1000)
// os.release(&memory)
// os.print("Hello world")