Codechange: move documentation to declaration, when there are multiple implementations

This commit is contained in:
Rubidium
2026-02-16 16:35:19 +01:00
committed by rubidium42
parent 581a038913
commit 0b3c448ea1
6 changed files with 30 additions and 28 deletions
+7
View File
@@ -13,7 +13,14 @@
#include "3rdparty/fmt/format.h"
[[noreturn]] void UserErrorI(const std::string &str);
/**
* Error handling for fatal non-user errors.
* @param str the string to print.
* @attention Function does not return.
*/
[[noreturn]] void FatalErrorI(const std::string &str);
#define UserError(format_string, ...) UserErrorI(fmt::format(FMT_STRING(format_string) __VA_OPT__(,) __VA_ARGS__))
#define FatalError(format_string, ...) FatalErrorI(fmt::format(FMT_STRING(format_string) __VA_OPT__(,) __VA_ARGS__))