WebCFace 2.5.2
Web-based Communication Framework & Dashboard-like UI
Loading...
Searching...
No Matches
fmt.h
Go to the documentation of this file.
1#pragma once
2#ifndef SPDLOG_FMT_EXTERNAL
3#error "SPDLOG_FMT_EXTERNAL must be enabled. Clear the build directory and try again."
4#endif
5#include <fmt/base.h>
6
7#define WEBCFACE_MESSAGE_FMT(Type) \
8 template <> \
9 struct fmt::formatter<Type> : formatter<string_view> { \
10 static constexpr int msg_kind = Type::kind; \
11 auto format(const Type &, \
12 format_context &) const -> format_context::iterator; \
13 };