math/assert.h File Reference
Description
Assertions and compile-time assertions. See Math API Assertions.
Code Example
math/assert.h
//*****************************************************************************
// Copyright 1986, 2016 NVIDIA Corporation. All rights reserved.
//*****************************************************************************
//*****************************************************************************
#ifndef MI_MATH_ASSERT_H
#define MI_MATH_ASSERT_H
#include <mi/base/config.h>
#include <mi/base/assert.h>
namespace mi {
namespace math {
#if defined( mi_math_assert) && ! defined( mi_math_assert_msg) \
|| ! defined( mi_math_assert) && defined( mi_math_assert_msg)
error "Only one of mi_math_assert and mi_math_assert_msg has been defined. Please define both."
#else
#ifndef mi_math_assert
#define mi_math_assert(expr) mi_base_assert(expr)
#define mi_math_assert_msg(expr, msg) mi_base_assert_msg(expr, msg)
// Just for doxygen, begin
#define mi_math_assert_enabled
#undef mi_math_assert_enabled
// Just for doxygen, end
#ifdef mi_base_assert_enabled
#define mi_math_assert_enabled
#endif // mi_math_assert_enabled
#else // mi_math_assert
#define mi_math_assert_enabled
#endif // mi_math_assert
#endif // mi_math_assert xor mi_math_assert_msg
// end group mi_math_assert
} // namespace math
} // namespace mi
#endif // MI_MATH_ASSERT_H
Namespaces
- namespace
- Common namespace for APIs of NVIDIA Advanced Rendering Center GmbH. More...
- namespace
- Namespace for the Math API. More...