-// Copyright (C) 2019-2024 Joel Rosdahl and other contributors
+// Copyright (C) 2019-2026 Joel Rosdahl and other contributors
//
// See doc/authors.adoc for a complete list of contributors.
//
#include <string_view>
#include <system_error>
-// Convenience macro for calling `fmt::format` with `FMT_STRING` around the
-// format string literal.
-#define FMT(format_, ...) fmt::format(FMT_STRING(format_), __VA_ARGS__)
+// Convenience macro for `fmt::format`.
+#define FMT(format_, ...) fmt::format(format_, __VA_ARGS__)
-// Convenience macro for calling `fmt::print` with `FMT_STRING` around the
-// format string literal.
-#define PRINT(stream_, format_, ...) \
- fmt::print(stream_, FMT_STRING(format_), __VA_ARGS__)
+// Convenience macro for `fmt::print`.
+#define PRINT(stream_, format_, ...) fmt::print(stream_, format_, __VA_ARGS__)
// Convenience macro for calling `fmt::print` with a message that is not a
// format string.
-// Copyright (C) 2020-2025 Joel Rosdahl and other contributors
+// Copyright (C) 2020-2026 Joel Rosdahl and other contributors
//
// See doc/authors.adoc for a complete list of contributors.
//
} while (false)
// Log a message (plus a newline character) described by a format string with at
-// least one placeholder. `format` is checked at compile time.
-#define LOG(format_, ...) LOG_RAW(fmt::format(FMT_STRING(format_), __VA_ARGS__))
+// least one placeholder.
+#define LOG(format_, ...) LOG_RAW(fmt::format(format_, __VA_ARGS__))
// Log a message (plus a newline character) described by a format string with at
-// least one placeholder without flushing and with a reused timestamp. `format`
-// is checked at compile time.
+// least one placeholder without flushing and with a reused timestamp.
#define BULK_LOG(logger_, format_, ...) \
- logger_.log(fmt::format(FMT_STRING(format_), __VA_ARGS__))
+ logger_.log(fmt::format(format_, __VA_ARGS__))
namespace util::logging {