OGRE-Next: OgreAssert.h File Reference

| OGRE-Next 3.0.0 Object-Oriented Graphics Rendering Engine

Loading...
Searching...
No Matches
Namespaces | Macros | Typedefs | Enumerations | Functions
OgreAssert.h File Reference
`#include "OgrePrerequisites.h"`
`#include "debugbreak/debugbreak.h"`

## Namespaces
namespace | Ogre
| bswapNN may be defined as macros in <sys/endian.h> or <sys/bswap.h>
namespace | Ogre::Assert

## Macros
#define | OGRE_ASSERT(cond)
#define | OGRE_ASSERT_FAIL(msg, ...)
#define | OGRE_ASSERT_MSG(cond, msg, ...)
#define | OGRE_HALT()
#define | OGRE_STATIC_ASSERT(x)
#define | OGRE_UNUSED(x)
#define | OGRE_VERIFY(cond)
#define | OGRE_VERIFY_MSG(cond, msg, ...)

## Typedefs
typedef FailBehavior(* | Ogre::Assert::Handler) (const char *condition, const char *msg, const char *file, int line)

## Enumerations
enum | Ogre::Assert::FailBehavior { Ogre::Assert::Halt , Ogre::Assert::Continue }

## Functions
_OgreExport Handler | Ogre::Assert::GetHandler ()
_OgreExport FailBehavior | Ogre::Assert::ReportFailure (const char *condition, const char *file, int line, const char *msg,...)
_OgreExport void | Ogre::Assert::SetHandler (Handler newHandler)

## Macro Definition Documentation

## ◆ OGRE_ASSERT

#define OGRE_ASSERT | ( |  | cond | ) |

Value:
do \
{ \
if( !( cond ) ) \
{ \
if( Ogre::Assert::ReportFailure( #cond, __FILE__, __LINE__, 0 ) == Ogre::Assert::Halt ) \
OGRE_HALT(); \
} \
} while( 0 )
Ogre::Assert::ReportFailure
_OgreExport FailBehavior ReportFailure(const char *condition, const char *file, int line, const char *msg,...)
Ogre::Assert::Halt
@ Halt
Definition OgreAssert.h:45

## ◆ OGRE_ASSERT_FAIL

#define OGRE_ASSERT_FAIL | ( |  | msg,
|  |  | ... )

Value:
do \
{ \
if( Ogre::Assert::ReportFailure( 0, __FILE__, __LINE__, ( msg ), ##__VA_ARGS__ ) == \
Ogre::Assert::Halt ) \
OGRE_HALT(); \
} while( 0 )

## ◆ OGRE_ASSERT_MSG

#define OGRE_ASSERT_MSG | ( |  | cond,
|  |  | msg,
|  |  | ... )

Value:
do \
{ \
if( !( cond ) ) \
{ \
if( Ogre::Assert::ReportFailure( #cond, __FILE__, __LINE__, ( msg ), \
##__VA_ARGS__ ) == Ogre::Assert::Halt ) \
OGRE_HALT(); \
} \
} while( 0 )

## ◆ OGRE_HALT

#define OGRE_HALT | ( |  | ) |

Value:
debug_break()

## ◆ OGRE_STATIC_ASSERT

#define OGRE_STATIC_ASSERT | ( |  | x | ) |

Value:
typedef char OgreStaticAssert[( x ) ? 1 : -1]; \
OGRE_UNUSED( OgreStaticAssert );

## ◆ OGRE_UNUSED

#define OGRE_UNUSED | ( |  | x | ) |

Value:
do \
{ \
(void)sizeof( x ); \
} while( 0 )

## ◆ OGRE_VERIFY

#define OGRE_VERIFY | ( |  | cond | ) |

Value:
OGRE_ASSERT( cond )
OGRE_ASSERT
#define OGRE_ASSERT(cond)
Definition OgreAssert.h:68

## ◆ OGRE_VERIFY_MSG

#define OGRE_VERIFY_MSG | ( |  | cond,
|  |  | msg,
|  |  | ... )

Value:
OGRE_ASSERT_MSG( cond, msg, ##__VA_ARGS__ )
OGRE_ASSERT_MSG
#define OGRE_ASSERT_MSG(cond, msg,...)
Definition OgreAssert.h:99