Codechange: use the fmt library for simpler debug formats

This commit is contained in:
rubidium42
2021-06-11 21:17:07 +02:00
committed by rubidium42
parent 662d8dfc30
commit a99ac62c1a
3 changed files with 15 additions and 1 deletions

View File

@@ -425,6 +425,9 @@ static_assert(SIZE_MAX >= UINT32_MAX);
# define unlikely(x) (x)
#endif /* __GNUC__ || __clang__ */
/* For the FMT library we only want to use the headers, not link to some library. */
#define FMT_HEADER_ONLY
void NORETURN CDECL usererror(const char *str, ...) WARN_FORMAT(1, 2);
void NORETURN CDECL error(const char *str, ...) WARN_FORMAT(1, 2);
#define NOT_REACHED() error("NOT_REACHED triggered at line %i of %s", __LINE__, __FILE__)