UT/UT_Assert.h File Reference

#include "UT_API.h"

Go to the source code of this file.

Classes

struct  CompileTimeError< true >

Defines

#define UT_ASSERT_LEVEL_NONE   0
#define UT_ASSERT_LEVEL_NORMAL   1
#define UT_ASSERT_LEVEL_PARANOID   2
#define UT_ASSERT_LEVEL_SLOW   3
#define UT_ASSERT_LEVEL   UT_ASSERT_LEVEL_NONE
#define UT_ASSERT_FUNC   ((char *)0)
#define UT_ASSERT_SLOW(ZZ)   ((void)0)
#define UT_ASSERT_P(ZZ)   ((void)0)
#define UT_ASSERT(ZZ)   ((void)0)
#define UT_ASSERT_MSG_SLOW(ZZ, MM)   ((void)0)
#define UT_ASSERT_MSG_P(ZZ, MM)   ((void)0)
#define UT_ASSERT_MSG(ZZ, MM)   ((void)0)
#define UT_ASSERT_COMPILETIME(expr)   CompileTimeError<(expr) != 0>()
#define UT_IF_ASSERT(ZZ)
#define UT_IFNOT_ASSERT(ZZ)   ZZ
#define UT_VERIFY(expr)   ((void)(expr))

Enumerations

enum  UT_AssertResponse {
  UT_ASSERT_RESPONSE_DEBUG, UT_ASSERT_RESPONSE_IGNORE, UT_ASSERT_RESPONSE_IGNORE_ALL, UT_ASSERT_RESPONSE_TRACE,
  UT_ASSERT_RESPONSE_ERROR
}

Functions

UT_API void UT_Assert (const char *file, int linenum, const char *function, const char *condition, const char *reason, int &ignoreflag)
UT_API void UTdisableInteractiveAssertsOn ()
UT_API void UTdisableInteractiveAssertsOff ()


Define Documentation

#define UT_ASSERT ( ZZ   )     ((void)0)

#define UT_ASSERT_COMPILETIME ( expr   )     CompileTimeError<(expr) != 0>()

Definition at line 96 of file UT_Assert.h.

#define UT_ASSERT_FUNC   ((char *)0)

Definition at line 33 of file UT_Assert.h.

#define UT_ASSERT_LEVEL   UT_ASSERT_LEVEL_NONE

Definition at line 16 of file UT_Assert.h.

#define UT_ASSERT_LEVEL_NONE   0

Definition at line 10 of file UT_Assert.h.

#define UT_ASSERT_LEVEL_NORMAL   1

Definition at line 11 of file UT_Assert.h.

#define UT_ASSERT_LEVEL_PARANOID   2

Definition at line 12 of file UT_Assert.h.

#define UT_ASSERT_LEVEL_SLOW   3

Definition at line 13 of file UT_Assert.h.

#define UT_ASSERT_MSG ( ZZ,
MM   )     ((void)0)

Definition at line 87 of file UT_Assert.h.

#define UT_ASSERT_MSG_P ( ZZ,
MM   )     ((void)0)

Definition at line 86 of file UT_Assert.h.

#define UT_ASSERT_MSG_SLOW ( ZZ,
MM   )     ((void)0)

Definition at line 85 of file UT_Assert.h.

#define UT_ASSERT_P ( ZZ   )     ((void)0)

Definition at line 83 of file UT_Assert.h.

#define UT_ASSERT_SLOW ( ZZ   )     ((void)0)

Definition at line 82 of file UT_Assert.h.

#define UT_IF_ASSERT ( ZZ   ) 

Definition at line 109 of file UT_Assert.h.

#define UT_IFNOT_ASSERT ( ZZ   )     ZZ

Definition at line 110 of file UT_Assert.h.

#define UT_VERIFY ( expr   )     ((void)(expr))

Definition at line 118 of file UT_Assert.h.


Enumeration Type Documentation

Enumerator:
UT_ASSERT_RESPONSE_DEBUG 
UT_ASSERT_RESPONSE_IGNORE 
UT_ASSERT_RESPONSE_IGNORE_ALL 
UT_ASSERT_RESPONSE_TRACE 
UT_ASSERT_RESPONSE_ERROR 

Definition at line 121 of file UT_Assert.h.


Function Documentation

UT_API void UT_Assert ( const char *  file,
int  linenum,
const char *  function,
const char *  condition,
const char *  reason,
int &  ignoreflag 
)

UT_API void UTdisableInteractiveAssertsOff (  ) 

UT_API void UTdisableInteractiveAssertsOn (  ) 


Generated on Mon Jan 28 00:27:56 2013 for HDK by  doxygen 1.5.9