Cinder  0.9.1
Namespaces | Macros | Functions
CinderAssert.h File Reference
#include "cinder/CurrentFunction.h"
#include <cassert>

Namespaces

 cinder
 
 cinder::detail
 

Macros

#define CI_ASSERT(expr)   assert( expr )
 
#define CI_ASSERT_MSG(expr, msg)   ( (expr) ? ( (void)0) : ::cinder::detail::assertionFailedMessageAbort( #expr, msg, CINDER_CURRENT_FUNCTION, __FILE__, __LINE__ ) )
 
#define CI_VERIFY(expr)   CI_ASSERT( expr )
 
#define CI_VERIFY_MSG(expr, msg)   CI_ASSERT_MSG( expr, msg )
 
#define CI_ASSERT_NOT_REACHABLE()   CI_ASSERT_MSG( 0, "not reachable" )
 

Functions

void cinder::detail::assertionFailedBreak (char const *expr, char const *function, char const *file, long line)
 
void cinder::detail::assertionFailedMessageBreak (char const *expr, char const *msg, char const *function, char const *file, long line)
 
void cinder::detail::assertionFailedMessageAbort (char const *expr, char const *msg, char const *function, char const *file, long line)
 

Macro Definition Documentation

#define CI_ASSERT (   expr)    assert( expr )
#define CI_ASSERT_MSG (   expr,
  msg 
)    ( (expr) ? ( (void)0) : ::cinder::detail::assertionFailedMessageAbort( #expr, msg, CINDER_CURRENT_FUNCTION, __FILE__, __LINE__ ) )
#define CI_VERIFY (   expr)    CI_ASSERT( expr )
#define CI_VERIFY_MSG (   expr,
  msg 
)    CI_ASSERT_MSG( expr, msg )
#define CI_ASSERT_NOT_REACHABLE ( )    CI_ASSERT_MSG( 0, "not reachable" )