CppCommon  1.0.4.1
C++ Common Library
Namespaces | Macros | Functions
fatal.h File Reference

Fatal abort execution definition. More...

#include "errors/system_error.h"
#include "system/source_location.h"
#include "system/stack_trace.h"
#include <string>

Go to the source code of this file.

Namespaces

 CppCommon
 C++ Common project definitions.
 

Macros

#define fatality(...)   CppCommon::fatal(__LOCATION__, __STACK__, __VA_ARGS__)
 Fatal abort execution extended macro. More...
 

Functions

void CppCommon::fatal (const SourceLocation &location, const StackTrace &trace, const std::string &message, int error=SystemError::GetLast()) noexcept
 Fatal abort execution. More...
 
void CppCommon::fatal (const SourceLocation &location, const StackTrace &trace, const std::exception &fatal) noexcept
 Fatal abort execution. More...
 

Detailed Description

Fatal abort execution definition.

Author
Ivan Shynkarenka
Date
04.04.2016

Definition in file fatal.h.

Macro Definition Documentation

◆ fatality

#define fatality (   ...)    CppCommon::fatal(__LOCATION__, __STACK__, __VA_ARGS__)

Fatal abort execution extended macro.

Fatal abort execution with the current location.

Examples
errors_fatal.cpp.

Definition at line 22 of file fatal.h.