CppCommon 1.0.6.0
C++ Common Library
Loading...
Searching...
No Matches
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

namespace  CppCommon
 C++ Common project definitions.

Macros

#define fatality(...)
 Fatal abort execution extended macro.

Functions

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

Detailed Description

Fatal abort execution definition.

Author
Ivan Shynkarenka
Date
04.04.2016

Definition in file fatal.h.

Macro Definition Documentation

◆ fatality

#define fatality ( ...)
Value:
void fatal(const SourceLocation &location, const StackTrace &trace, const std::string &message, int error=SystemError::GetLast()) noexcept
Fatal abort execution.
Definition fatal.cpp:16
#define __LOCATION__
Current source location macro.
#define __STACK__
Current stack trace snapshot macro.
Definition stack_trace.h:22

Fatal abort execution extended macro.

Fatal abort execution with the current location.

Examples
errors_fatal.cpp.

Definition at line 22 of file fatal.h.