Go to the documentation of this file.
6 #ifndef OPENMPCD_DEBUG_ASSERT_HPP
7 #define OPENMPCD_DEBUG_ASSERT_HPP
20 #define OPENMPCD_DEBUG_ASSERT_HOST_EXCEPTIONTYPE(assertion, ExceptionType) \
23 OPENMPCD_THROW(ExceptionType, #assertion); \
26 #define OPENMPCD_DEBUG_ASSERT_HOST_EXCEPTIONTYPE(assertion, ExceptionType) \
37 #define OPENMPCD_DEBUG_ASSERT_HOST(assertion) \
38 OPENMPCD_DEBUG_ASSERT_HOST_EXCEPTIONTYPE( \
39 assertion, OpenMPCD::AssertionException)
52 #define OPENMPCD_DEBUG_ASSERT_DEVICE(assertion) \
57 #define OPENMPCD_DEBUG_ASSERT_DEVICE(assertion) do{} while(false)
73 #define OPENMPCD_DEBUG_ASSERT_EXCEPTIONTYPE(assertion, ExceptionType) \
74 OPENMPCD_DEBUG_ASSERT_DEVICE(assertion)
76 #define OPENMPCD_DEBUG_ASSERT_EXCEPTIONTYPE(assertion, ExceptionType) \
77 OPENMPCD_DEBUG_ASSERT_HOST_EXCEPTIONTYPE(assertion, ExceptionType)
88 #define OPENMPCD_DEBUG_ASSERT(assertion) \
89 OPENMPCD_DEBUG_ASSERT_EXCEPTIONTYPE(assertion, OpenMPCD::AssertionException)
91 #endif //OPENMPCD_DEBUG_ASSERT_HPP