AzerothCore 3.3.5a
OpenSource WoW Emulator
|
This file contains definitions of functions used for reporting critical application errors. More...
#include "Errors.h"
#include "Duration.h"
#include <cstdio>
#include <cstdlib>
#include <thread>
#include <Windows.h>
Go to the source code of this file.
Namespaces | |
namespace | anonymous_namespace{Errors.cpp} |
Macros | |
#define | Crash(message) |
Functions | |||||||||||||||
std::string | GetDebugInfo () | ||||||||||||||
MakeMessage | |||||||||||||||
Make message for display erros
| |||||||||||||||
std::string | anonymous_namespace{Errors.cpp}::MakeMessage (std::string_view messageType, std::string_view file, uint32 line, std::string_view function, std::string_view message, std::string_view fmtMessage={}, std::string_view debugInfo={}) | ||||||||||||||
MakeAbortMessage | |||||||||||||||
Make message for display erros
| |||||||||||||||
std::string | anonymous_namespace{Errors.cpp}::MakeAbortMessage (std::string_view file, uint32 line, std::string_view function, std::string_view fmtMessage={}) | ||||||||||||||
This file contains definitions of functions used for reporting critical application errors.
It is very important that (std::)abort is NEVER called in place of *((volatile int*)nullptr) = 0; Calling abort() on Windows does not invoke unhandled exception filters - a mechanism used by WheatyExceptionReport to log crashes. exit(1) calls here are for static analysis tools to indicate that calling functions defined in this file terminates the application.
Definition in file Errors.cpp.
#define Crash | ( | message | ) |
std::string GetDebugInfo | ( | ) |