diff options
author | Steven Le Rouzic <steven.lerouzic@gmail.com> | 2024-04-04 22:05:06 +0200 |
---|---|---|
committer | Steven Le Rouzic <steven.lerouzic@gmail.com> | 2024-04-04 22:05:06 +0200 |
commit | f3ba19b162a89b2081c0598b4a0bf126146e3671 (patch) | |
tree | e6c82af3ad5c7ea5e11aa6381822bfc8e68dd5fd /deimos/core/format.h | |
parent | 3320960992afe36f4b6306130c6327e084c381b2 (diff) |
Add logging system
Diffstat (limited to 'deimos/core/format.h')
-rw-r--r-- | deimos/core/format.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/deimos/core/format.h b/deimos/core/format.h index 98d9001..be2e4bf 100644 --- a/deimos/core/format.h +++ b/deimos/core/format.h @@ -37,6 +37,11 @@ struct FormatArg unsigned_integer{value}
{}
+ explicit FormatArg(Span<const char> value) :
+ type{kString},
+ string{value}
+ {}
+
explicit FormatArg(gsl::czstring value) :
type{kString},
string{value, (int64_t)__builtin_strlen(value)}
|