mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2026-07-26 00:45:35 +00:00
Codechange: move documentation to declaration, when there are multiple implementations
This commit is contained in:
@@ -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__))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user