cppx-core
Macros
macro-fail.hpp File Reference
#include <cppx-core/failure-handling/hopefully_and_fail.hpp>
#include <cppx-core/failure-handling/macro-source_location.hpp>
Include dependency graph for macro-fail.hpp:

Go to the source code of this file.

Macros

#define fail   CPPX_FAIL
 
#define fail_   CPPX_FAIL_
 
#define CPPX_FAIL(...)   CPPX_FAIL_( std::runtime_error, __VA_ARGS__ )
 
#define CPPX_FAIL_(X, ...)   ::cppx::fail<X>( std::string( __VA_ARGS__ ), CPPX_SOURCE_LOCATION )
 

Macro Definition Documentation

◆ CPPX_FAIL

#define CPPX_FAIL (   ...)    CPPX_FAIL_( std::runtime_error, __VA_ARGS__ )

Definition at line 10 of file macro-fail.hpp.

◆ CPPX_FAIL_

#define CPPX_FAIL_ (   X,
  ... 
)    ::cppx::fail<X>( std::string( __VA_ARGS__ ), CPPX_SOURCE_LOCATION )

Definition at line 13 of file macro-fail.hpp.

◆ fail

#define fail   CPPX_FAIL

Definition at line 6 of file macro-fail.hpp.

◆ fail_

#define fail_   CPPX_FAIL_

Definition at line 7 of file macro-fail.hpp.