Open-Transactions  0.93.0-ge03d287
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Assert.hpp File Reference
#include <cstddef>
#include <exception>
Include dependency graph for Assert.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Assert
 

Macros

#define OT_FAIL
 
#define OT_FAIL_MSG(s)
 
#define OT_ASSERT(x)
 
#define OT_ASSERT_MSG(x, s)
 

Macro Definition Documentation

#define OT_ASSERT (   x)
Value:
if (false == (x)) { \
Assert::doAssert(__FILE__, __LINE__, nullptr); \
std::terminate(); \
};

Definition at line 150 of file Assert.hpp.

#define OT_ASSERT_MSG (   x,
 
)
Value:
if (false == (x)) { \
Assert::doAssert(__FILE__, __LINE__, (s)); \
std::terminate(); \
};

Definition at line 155 of file Assert.hpp.

#define OT_FAIL
Value:
{ \
Assert::doAssert(__FILE__, __LINE__, nullptr); \
std::terminate(); \
};

Definition at line 139 of file Assert.hpp.

#define OT_FAIL_MSG (   s)
Value:
{ \
Assert::doAssert(__FILE__, __LINE__, (s)); \
std::terminate(); \
};

Definition at line 144 of file Assert.hpp.