OGRE  2.2.4
Object-Oriented Graphics Rendering Engine
OgreAssert.h File Reference
#include "OgrePrerequisites.h"
#include "debugbreak/debugbreak.h"

Namespaces

 Ogre
 

This source file is part of OGRE (Object-oriented Graphics Rendering Engine) For the latest info, see http://www.ogre3d.org/

 
 Ogre::Assert
 

Macros

#define OGRE_ASSERT(condition)   ((void)0)
 
#define OGRE_ASSERT_FAIL(msg, ...)   ((void)0)
 
#define OGRE_ASSERT_MSG(condition, msg, ...)   ((void)0)
 
#define OGRE_HALT()   debug_break()
 
#define OGRE_STATIC_ASSERT(x)   typedef char OgreStaticAssert[(x) ? 1 : -1];OGRE_UNUSED(OgreStaticAssert);
 
#define OGRE_UNUSED(x)   do { (void)sizeof(x); } while(0)
 
#define OGRE_VERIFY(cond)   ((void)0)
 
#define OGRE_VERIFY_MSG(cond, msg, ...)   ((void)0)
 

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 (   condition)    ((void)0)

◆ OGRE_ASSERT_FAIL

#define OGRE_ASSERT_FAIL (   msg,
  ... 
)    ((void)0)

◆ OGRE_ASSERT_MSG

#define OGRE_ASSERT_MSG (   condition,
  msg,
  ... 
)    ((void)0)

◆ OGRE_HALT

#define OGRE_HALT ( )    debug_break()

◆ OGRE_STATIC_ASSERT

#define OGRE_STATIC_ASSERT (   x)    typedef char OgreStaticAssert[(x) ? 1 : -1];OGRE_UNUSED(OgreStaticAssert);

◆ OGRE_UNUSED

#define OGRE_UNUSED (   x)    do { (void)sizeof(x); } while(0)

◆ OGRE_VERIFY

#define OGRE_VERIFY (   cond)    ((void)0)

◆ OGRE_VERIFY_MSG

#define OGRE_VERIFY_MSG (   cond,
  msg,
  ... 
)    ((void)0)