|
OpenTTD Source 20251117-master-g7398d2e290
|
Error reporting related functions. More...
#include "3rdparty/fmt/format.h"Go to the source code of this file.
Macros | |
| #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__)) |
Functions | |
| void | UserErrorI (const std::string &str) |
| Error handling for fatal user errors. | |
| void | FatalErrorI (const std::string &str) |
| Error handling for fatal non-user errors. | |
Error reporting related functions.
Definition in file error_func.h.
| #define FatalError | ( | format_string, | |
| ... | |||
| ) | FatalErrorI(fmt::format(FMT_STRING(format_string) __VA_OPT__(,) __VA_ARGS__)) |
Definition at line 18 of file error_func.h.
| #define UserError | ( | format_string, | |
| ... | |||
| ) | UserErrorI(fmt::format(FMT_STRING(format_string) __VA_OPT__(,) __VA_ARGS__)) |
Definition at line 17 of file error_func.h.
| void FatalErrorI | ( | const std::string & | msg | ) |
Error handling for fatal non-user errors.
| str | the string to print. |
Error handling for fatal non-user errors.
| s | Format string. |
Definition at line 140 of file openttd.cpp.
References StrgenState::cur_line, StrgenState::file, VideoDriver::GetInstance(), and CrashLog::SetErrorMessage().
| void UserErrorI | ( | const std::string & | str | ) |
Error handling for fatal user errors.
| str | the string to print. |
Definition at line 119 of file openttd.cpp.
References VideoDriver::GetInstance(), and Driver::Stop().