|
#define | __STRING(arg) |
|
#define | __TNL_ASSERT_PRED2(pred, op, val1, val2, msg) |
|
#define | __TNL_JOIN_STRINGS(val1, op, val2) |
|
#define | __TNL_PRETTY_FUNCTION __PRETTY_FUNCTION__ |
|
#define | TNL_ASSERT_EQ(val1, val2, msg) |
|
#define | TNL_ASSERT_FALSE(val, msg) |
|
#define | TNL_ASSERT_GE(val1, val2, msg) |
|
#define | TNL_ASSERT_GT(val1, val2, msg) |
|
#define | TNL_ASSERT_LE(val1, val2, msg) |
|
#define | TNL_ASSERT_LT(val1, val2, msg) |
|
#define | TNL_ASSERT_NE(val1, val2, msg) |
|
#define | TNL_ASSERT_TRUE(val, msg) |
|
#define | TNL_IMPL_CMP_HELPER_(op_name, op) |
|
|
__cuda_callable__ void | TNL::Assert::abortWithDiagnosticsCuda (const char *assertion, const char *message, const char *file, const char *function, int line, const char *diagnostics) |
|
void | TNL::Assert::abortWithDiagnosticsHost (const char *assertion, const char *message, const char *file, const char *function, int line, const char *diagnostics) |
|
template<typename T1 , typename T2 > |
TNL_NVCC_HD_WARNING_DISABLE __cuda_callable__ void | TNL::Assert::cmpHelperFalse (const char *assertion, const char *message, const char *file, const char *function, int line, const char *expr1, const char *expr2, const T1 &val1, const T2 &val2) |
|
template<typename T1 , typename T2 > |
__cuda_callable__ void | TNL::Assert::cmpHelperOpFailure (const char *assertion, const char *message, const char *file, const char *function, int line, const char *lhs_expression, const char *rhs_expression, const T1 &lhs_value, const T2 &rhs_value, const char *op) |
|
template<typename T1 , typename T2 > |
TNL_NVCC_HD_WARNING_DISABLE __cuda_callable__ void | TNL::Assert::cmpHelperTrue (const char *assertion, const char *message, const char *file, const char *function, int line, const char *expr1, const char *expr2, const T1 &val1, const T2 &val2) |
|
The purpose of this file is to define the TNL_ASSERT_*
debugging macros.
If the NDEBUG
macro is defined, the build is considered to be optimized and all assert macros are empty. Otherwise, the conditions are checked and failures lead to the TNL::Assert::AssertionError
exception containing the diagnostics message.