Go to the documentation of this file.
   10 #ifndef MI_MATH_ASSERT_H
 
   11 #define MI_MATH_ASSERT_H
 
   43 #if       defined( mi_math_assert) && ! defined( mi_math_assert_msg) \
 
   44      || ! defined( mi_math_assert) &&   defined( mi_math_assert_msg)
 
   45 error 
"Only one of mi_math_assert and mi_math_assert_msg has been defined. Please define both."
 
   47 #ifndef mi_math_assert
 
   62 #define mi_math_assert(expr) mi_base_assert(expr)
 
   81 #define mi_math_assert_msg(expr, msg) mi_base_assert_msg(expr, msg)
 
   90 #define mi_math_assert_enabled
 
   91 #undef mi_math_assert_enabled
 
   95 #ifdef mi_base_assert_enabled
 
   96 #define mi_math_assert_enabled
 
   97 #endif // mi_math_assert_enabled
 
   99 #else // mi_math_assert
 
  101 #define mi_math_assert_enabled
 
  103 #endif // mi_math_assert
 
  104 #endif // mi_math_assert xor mi_math_assert_msg
 
  113 #endif // MI_MATH_ASSERT_H