From bdd9dad190ca6068ccce6112f827f042080a1aae Mon Sep 17 00:00:00 2001 From: Nathanne Isip Date: Wed, 17 Feb 2021 00:02:30 +0800 Subject: [PATCH] IO::readline() implementation. --- sdk/librishka_impl.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sdk/librishka_impl.cpp b/sdk/librishka_impl.cpp index 18bd541..d8b121a 100644 --- a/sdk/librishka_impl.cpp +++ b/sdk/librishka_impl.cpp @@ -182,6 +182,10 @@ rune IO::readch() { return (rune) rishka_sc_0(RISHKA_SC_IO_READCH); } +string IO::readline() { + return (string) rishka_sc_0(RISHKA_SC_IO_READLINE); +} + void Sys::exit(i32 code) { rishka_sc_1(RISHKA_SC_SYS_EXIT, (i64) code); }