casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Classes | Namespaces | Defines
Assert.h File Reference

Go to the source code of this file.

Classes

class  casa::assert_< t >
 Utility class for Assert macros. More...

Namespaces

namespace  casa
 this file contains all the compiler specific defines

Defines

#define AlwaysAssert(expr, exception)
 These marcos are provided for use instead of simply using the constructors of assert_ to allow addition of line numbers and file name in the future.
#define AlwaysAssertExit(expr)
#define DebugAssert(expr, exception)
#define DebugAssertExit(expr)

Define Documentation

#define AlwaysAssert (   expr,
  exception 
)

These marcos are provided for use instead of simply using the constructors of assert_ to allow addition of line numbers and file name in the future.

DebugAssert and AlwaysAssert are designed to be used by library elements because they actually raise an exception which can later be later caught. DebugAssertExit and AlwaysAssertExit are intended to be used by the applications writer, because they cause an exit(0).

Definition at line 157 of file Assert.h.

Referenced by casa::ListIter< WCMotionEH * >::addRight(), casa::ConstListIter< WCMotionEH * >::atEnd(), casa::ConstListIter< WCMotionEH * >::atStart(), casa::ConstListIter< WCMotionEH * >::getRight(), casa::ListIter< WCMotionEH * >::getRight(), casa::ConstListIter< WCMotionEH * >::len(), casa::ConstListIter< WCMotionEH * >::operator++(), casa::ConstListIter< WCMotionEH * >::pos(), casa::ConstListIter< WCMotionEH * >::step(), casa::ConstListIter< WCMotionEH * >::toEnd(), and casa::ConstListIter< WCMotionEH * >::toStart().

#define AlwaysAssertExit (   expr)

Definition at line 159 of file Assert.h.

#define DebugAssert (   expr,
  exception 
)
#define DebugAssertExit (   expr)

Definition at line 186 of file Assert.h.