Go to the documentation of this file.
9 #ifndef MI_MATH_ASSERT_H
10 #define MI_MATH_ASSERT_H
42 #if defined( mi_math_assert) && ! defined( mi_math_assert_msg) \
43 || ! defined( mi_math_assert) && defined( mi_math_assert_msg)
44 error "Only one of mi_math_assert and mi_math_assert_msg has been defined. Please define both."
46 #ifndef mi_math_assert
61 #define mi_math_assert(expr) mi_base_assert(expr)
80 #define mi_math_assert_msg(expr, msg) mi_base_assert_msg(expr, msg)
89 #define mi_math_assert_enabled
90 #undef mi_math_assert_enabled
94 #ifdef mi_base_assert_enabled
95 #define mi_math_assert_enabled
96 #endif // mi_math_assert_enabled
98 #else // mi_math_assert
100 #define mi_math_assert_enabled
102 #endif // mi_math_assert
103 #endif // mi_math_assert xor mi_math_assert_msg
112 #endif // MI_MATH_ASSERT_H