From f011d871ef3af26c8f4e19de2c8d781c601ceffb Mon Sep 17 00:00:00 2001 From: Steven Le Rouzic Date: Fri, 11 Oct 2024 00:32:49 +0200 Subject: Add console printing --- asl/format.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'asl/format.cpp') diff --git a/asl/format.cpp b/asl/format.cpp index eb653e9..ff565bd 100644 --- a/asl/format.cpp +++ b/asl/format.cpp @@ -80,6 +80,18 @@ void asl::AslFormat(formatter& f, double) f.write("", 8); // @Todo Float formatting } +void asl::AslFormat(formatter& f, bool v) +{ + if (v) + { + f.write("true", 4); + } + else + { + f.write("false", 5); + } +} + void asl::AslFormat(formatter& f, uint8_t v) { AslFormat(f, static_cast(v)); -- cgit