OGS  v6.4.0
Error.h File Reference

Detailed Description

Definition in file Error.h.

#include <cstdlib>
#include "Logging.h"
#include <stdexcept>
Include dependency graph for Error.h:

Go to the source code of this file.

Macros

#define OGS_FATAL(...)
 

Macro Definition Documentation

◆ OGS_FATAL

#define OGS_FATAL (   ...)
Value:
{ \
BaseLib::console->critical("{}:{} {}() ", __FILE__, __LINE__, \
__FUNCTION__, fmt::format(__VA_ARGS__)); \
throw std::runtime_error(fmt::format(__VA_ARGS__)); \
}
std::shared_ptr< spdlog::logger > console
Definition: Logging.cpp:29
std::string format(const char *format_str,...)
Definition: StringTools.cpp:85

Definition at line 25 of file Error.h.