mirror of https://git.sr.ht/~garritfra/sabre
Garrit Franke
3 years ago
2 changed files with 9 additions and 2 deletions
@ -1,3 +1,10 @@ |
|||||||
|
// Raw wrapper around _printf builtin function. |
||||||
|
// Writes the given content to stdout |
||||||
fn print(msg) { |
fn print(msg) { |
||||||
_printf(msg + "\n") |
_printf(msg) |
||||||
|
} |
||||||
|
|
||||||
|
// Like print(), but with an extra newline ('\n') character |
||||||
|
fn println(msg) { |
||||||
|
print(msg + "\n") |
||||||
} |
} |
Loading…
Reference in new issue