hare

The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

commit 1f9ddbb6523ae1cc287ada78d3fe4429002f69e3
parent 10eac30bd581236ab6f7f0082fe4e69ba6181035
Author: Drew DeVault <sir@cmpwn.com>
Date:   Mon,  1 Feb 2021 10:08:09 -0500

io: add errorln

Diffstat:
Mio/println.ha | 7++++++-
1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/io/println.ha b/io/println.ha @@ -1,7 +1,12 @@ use rt; -// TEMP: This is due to be thrown out and rewritten to be not shit +// TEMP: This is due to be rewritten to be less shit export fn println(msg: str) void = { rt::write(1, msg: *const char, len(msg)); rt::write(1, "\n": *const char, 1z); }; + +export fn errorln(msg: str) void = { + rt::write(2, msg: *const char, len(msg)); + rt::write(2, "\n": *const char, 1z); +};