29#include <casacore/casa/aips.h>
30#include <casacore/casa/Exceptions/Error.h>
130 if (! expr)
throw(t(msg));
133 if (! ptr)
throw(t(msg));
135 assert_(
int expr,
const char *msg,
const char* file,
Int line);
136 assert_(
const void *ptr,
const char *msg,
const char* file,
Int line);
155#define AlwaysAssert(expr, exception) \
156 {casacore::assert_<exception > dummy_(expr, "Failed AlwaysAssert " #expr,__FILE__,(casacore::Int)__LINE__); dummy_.null(); }
157#define AlwaysAssertExit(expr) \
158 {casacore::assert_<casacore::AbortError> dummy_(expr, "Unrecoverable AlwaysAssertExit: " #expr,__FILE__,(casacore::Int)__LINE__); dummy_.null();}
160#if defined(AIPS_DEBUG)
176#define DebugAssert(expr, exception) \
177 {casacore::assert_<exception > dummy_(expr, "Failed Assertion: " #expr,__FILE__,(casacore::Int)__LINE__); dummy_.null();}
178#define DebugAssertExit(expr) \
179 {casacore::assert_<casacore::AbortError> dummy_(expr, "Unrecoverable Assertion: " #expr,__FILE__,(casacore::Int)__LINE__); dummy_.null();}
183#define DebugAssert(expr, exception)
184#define DebugAssertExit(expr)
191#ifndef CASACORE_NO_AUTO_TEMPLATES
192#include <casacore/casa/Utilities/Assert.tcc>
void null()
A no-op, but it keeps g++ from complaining about "variable not used" errors.
assert_(const void *ptr, const char *msg)
assert_(int expr, const char *msg)
assert_(int expr, const char *msg, const char *file, Int line)
assert_(const void *ptr, const char *msg, const char *file, Int line)
this file contains all the compiler specific defines