diff options
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));
|