SCIRun  5.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Macros
Assert.h File Reference

Utility for specifying data invariants (Assertions) More...

#include <sci_defs/error_defs.h>
#include <Core/Exceptions/AssertionFailed.h>
#include <Core/Exceptions/ArrayIndexOutOfBounds.h>

Go to the source code of this file.

Macros

#define ASSERTFAIL(string)   SCI_THROW(SCIRun::AssertionFailed(string, __FILE__, __LINE__));
 
#define ASSERTMSG_LEGACY(condition, message)
 
#define ASSERTL1(condition)
 
#define ASSERTL2(condition)
 
#define ASSERTL3(condition)
 
#define CHECKARRAYBOUNDS(value, lower, upper)
 
#define USE_IF_ASSERTS_ON(line)
 
#define ASSERTL1(condition)
 
#define ASSERTL2(condition)
 
#define ASSERTL3(condition)
 
#define ASSERTEQ(c1, c2)
 
#define ASSERTRANGE(c, l, h)
 
#define IFASSERT(x)
 
#define ASSERT(condition)   ASSERTL2(condition)
 

Detailed Description

Utility for specifying data invariants (Assertions)

Author
Steven G. Parker Department of Computer Science University of Utah
Date
Feb. 1994

Macro Definition Documentation

#define ASSERT (   condition)    ASSERTL2(condition)
#define ASSERTEQ (   c1,
  c2 
)
#define ASSERTFAIL (   string)    SCI_THROW(SCIRun::AssertionFailed(string, __FILE__, __LINE__));
Todo:
: make sure default SCI_ASSERTION_LEVEL is consistent across platforms
#define ASSERTL1 (   condition)
#define ASSERTL1 (   condition)
#define ASSERTL2 (   condition)
#define ASSERTL2 (   condition)
#define ASSERTL3 (   condition)
#define ASSERTL3 (   condition)
#define ASSERTMSG_LEGACY (   condition,
  message 
)
Value:
if(!(condition)){ \
SCI_THROW(SCIRun::AssertionFailed(message, __FILE__, __LINE__)); \
}
#define SCI_THROW(exc)
Definition: Exception.h:87
Definition: AssertionFailed.h:55
#define ASSERTRANGE (   c,
  l,
 
)
#define CHECKARRAYBOUNDS (   value,
  lower,
  upper 
)
#define IFASSERT (   x)
#define USE_IF_ASSERTS_ON (   line)