NVIDIA IndeX: DiCE API nvidia_logo_transpbg.gif Up
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
base/assert.h File Reference

Assertions and compile-time assertions. More...

#include <mi/base/config.h>

Go to the source code of this file.

Classes

struct  mi::base::static_assert_failure< bool >
 
struct  mi::base::static_assert_failure< true >
 
struct  mi::base::static_assert_test< int >
 

Namespaces

 mi
 Common namespace for APIs of NVIDIA Advanced Rendering Center GmbH.
 
 mi::base
 Namespace for the Base API.
 

Constant Groups

 mi
 Common namespace for APIs of NVIDIA Advanced Rendering Center GmbH.
 
 mi::base
 Namespace for the Base API.
 

Macros

#define mi_static_assert_attribute   __attribute__((unused))
 
#define mi_static_assert(expr)
 Compile time assertion that raises a compilation error if the constant expression expr evaluates to false. More...
 
#define mi_base_assert(expr)   (static_cast<void>(0))
 Base API assertion macro (without message). More...
 
#define mi_base_assert_msg(expr, msg)   (static_cast<void>(0))
 Base API assertion macro (with message). More...
 
#define mi_base_assert_enabled
 Indicates whether assertions are actually enabled. This symbol gets defined if and only if you (re-)defined mi_base_assert and mi_base_assert_msg. Note that you can not simply test for mi_base_assert or mi_base_assert_msg, since these macros get defined in any case (if you do not (re-)define them, they evaluate to a dummy statement that has no effect).
 
#define MI_BASE_ASSERT_FUNCTION   ("unknown")
 Expands to a string constant that describes the function in which the macro has been expanded. More...
 

Detailed Description

Assertions and compile-time assertions.

See Base API Assertions.