WebCFace 2.9.0
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
6#ifdef WEBCFACE_MESON
7#include "webcface-config.h"
8#else
9#include "webcface/common/webcface-config.h"
10#endif
11
12#ifdef WEBCFACE_COMPILER_IS_GCC
13#pragma GCC diagnostic push
14#pragma GCC diagnostic ignored "-Wabi"
15#endif
16#include <fmt/base.h>
17#ifdef WEBCFACE_COMPILER_IS_GCC
18#pragma GCC diagnostic pop
19#endif
20
21#define WEBCFACE_MESSAGE_FMT(Type) \
22 template <> \
23 struct fmt::formatter<Type> : formatter<string_view> { \
24 static constexpr int msg_kind = Type::kind; \
25 auto format(const Type &, \
26 format_context &) const -> format_context::iterator; \
27 };