casacore
Classes | Namespaces | Macros
Assert.h File Reference
#include <casacore/casa/aips.h>
#include <casacore/casa/Exceptions/Error.h>

Go to the source code of this file.

Classes

class  casacore::assert_< t >
  More...
 

Namespaces

 casacore
 this file contains all the compiler specific defines
 

Macros

#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. More...
 
#define AlwaysAssertExit(expr)
 
#define DebugAssert(expr, exception)
 
#define DebugAssertExit(expr)
 

Macro Definition Documentation

◆ AlwaysAssert

#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.

◆ AlwaysAssertExit

#define AlwaysAssertExit (   expr)

Definition at line 159 of file Assert.h.

◆ DebugAssert

#define DebugAssert (   expr,
  exception 
)

Definition at line 185 of file Assert.h.

◆ DebugAssertExit

#define DebugAssertExit (   expr)

Definition at line 186 of file Assert.h.