diff options
author | Steven Le Rouzic <steven.lerouzic@gmail.com> | 2024-10-11 00:32:49 +0200 |
---|---|---|
committer | Steven Le Rouzic <steven.lerouzic@gmail.com> | 2024-12-20 15:35:58 +0100 |
commit | f011d871ef3af26c8f4e19de2c8d781c601ceffb (patch) | |
tree | ac3611e6fa054cc0f8870aad524b263ff917057f /asl/format.cpp | |
parent | e020805cb140ed98d09e606a867b910fce78ad15 (diff) |
Add console printing
Diffstat (limited to 'asl/format.cpp')
-rw-r--r-- | asl/format.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
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("<DOUBLE>", 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<uint64_t>(v));
|