diff options
author | Steven Le Rouzic <steven.lerouzic@gmail.com> | 2024-04-24 00:29:16 +0200 |
---|---|---|
committer | Steven Le Rouzic <steven.lerouzic@gmail.com> | 2024-04-24 00:29:16 +0200 |
commit | 98c8fd5d39ee645922f071b6433308a813245500 (patch) | |
tree | 36804c19823b601608c3c44694f6db20aa8ce21a /deimos/core/format.cpp | |
parent | 85985c4408906b18eb451ca94edabaa0c3607817 (diff) |
Add custom formatter & use it on Status
Diffstat (limited to 'deimos/core/format.cpp')
-rw-r--r-- | deimos/core/format.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/deimos/core/format.cpp b/deimos/core/format.cpp index af0a851..5f420e9 100644 --- a/deimos/core/format.cpp +++ b/deimos/core/format.cpp @@ -51,6 +51,9 @@ public: case FormatArg::kUnsignedInteger:
PushUnsignedInteger(arg.integer);
break;
+ case FormatArg::kCustom:
+ arg.custom.callback(m_writer, arg.custom.payload);
+ break;
}
}
};
|