OGS
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__)); \
}

Definition at line 25 of file Error.h.

BaseLib::console
std::shared_ptr< spdlog::logger > console
Definition: Logging.cpp:31
BaseLib::format
std::string format(const char *format_str,...)
Definition: StringTools.cpp:85