34 #ifndef mpqc_util_misc_assert_h
35 #define mpqc_util_misc_assert_h
37 #include <mpqc_config.h>
40 #if MPQC_ASSERT_MODE == 0
41 # define MPQC_ASSERT( a )
45 #if MPQC_ASSERT_MODE == 1
47 # define MPQC_ASSERT( a ) assert(a)
51 #if MPQC_ASSERT_MODE == 2
52 # include <util/misc/exception.h>
53 # define MPQC_ASSERT( a ) ((not (a)) ? throw sc::Exception("assertion failed", __FILE__, __LINE__) : 1)
56 #endif // end of header guard
Generated at Sun Jan 26 2020 23:24:01 for MPQC
3.0.0-alpha using the documentation package Doxygen
1.8.16.