This commit is contained in:
nub31
2025-01-30 18:09:12 +01:00
parent b6c80af6c4
commit 89ed0e58fd
6 changed files with 34 additions and 48 deletions

View File

@@ -2,14 +2,12 @@ let SYS_WRITE = 1;
let STD_OUT = 1;
let STD_ERR = 2;
extern func print_int(value: int64);
func print(msg: String) {
syscall(SYS_WRITE, STD_OUT, msg, str_len(msg));
}
func print(value: int64) {
print_int(value);
print(itoa(value));
}
func print(value: bool) {