From f3ba19b162a89b2081c0598b4a0bf126146e3671 Mon Sep 17 00:00:00 2001 From: Steven Le Rouzic Date: Thu, 4 Apr 2024 22:05:06 +0200 Subject: Add logging system --- deimos/core/format.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'deimos/core/format.h') 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 value) : + type{kString}, + string{value} + {} + explicit FormatArg(gsl::czstring value) : type{kString}, string{value, (int64_t)__builtin_strlen(value)} -- cgit