| 1 | #ifndef GARGLK_FORMAT_H |
| 2 | #define GARGLK_FORMAT_H |
| 3 | |
| 4 | #define FMT_ENFORCE_COMPILE_STRING |
| 5 | #ifdef GARGLK_CONFIG_BUNDLED_FMT |
| 6 | #define FMT_HEADER_ONLY |
| 7 | #include "format/format.h" |
| 8 | #else |
| 9 | #include <fmt/format.h> |
| 10 | #endif |
| 11 | |
| 12 | // This was added in 5.0.0. |
| 13 | #ifndef FMT_STRING |
| 14 | #define FMT_STRING(s) (s) |
| 15 | #endif |
| 16 | |
| 17 | #define Format(s, ...) fmt::format(FMT_STRING(s), __VA_ARGS__) |
| 18 | |
| 19 | #endif |