This commit is contained in:
nub31
2026-02-28 23:19:57 +01:00
parent 270be1f740
commit 16d27c76ab
7 changed files with 47 additions and 22 deletions

View File

@@ -1,7 +1,10 @@
module core
extern func puts(text: ^u8)
export func print(text: string) {
puts(text.ptr)
sys::write(0 text.ptr text.length)
}
export func println(text: string) {
print(text)
print("\n")
}