29#include <casacore/casa/aips.h>
30#include <casacore/casa/Exceptions/Error.h>
122void assert_(
bool expr,
const char *msg,
const char* file,
int line);
134#define AlwaysAssert(expr, exception) \
135 {casacore::assert_<exception >(static_cast<bool>(expr), "Failed AlwaysAssert " #expr,__FILE__,static_cast<int>(__LINE__)); }
136#define AlwaysAssertExit(expr) \
137 {casacore::assert_<casacore::AbortError>(static_cast<bool>(expr), "Unrecoverable AlwaysAssertExit: " #expr,__FILE__,static_cast<int>(__LINE__));}
139#if defined(AIPS_DEBUG)
141#define DebugAssert(expr, exception) \
142 {casacore::assert_<exception >(static_cast<bool>(expr), "Failed Assertion: " #expr,__FILE__,static_cast<int>(__LINE__));}
143#define DebugAssertExit(expr) \
144 {casacore::assert_<casacore::AbortError>(static_cast<bool>(expr), "Unrecoverable Assertion: " #expr,__FILE__,static_cast<int>(__LINE__));}
148#define DebugAssert(expr, exception)
149#define DebugAssertExit(expr)
156#ifndef CASACORE_NO_AUTO_TEMPLATES
157#include <casacore/casa/Utilities/Assert.tcc>
void assert_(bool expr, const char *msg, const char *file, int line)
this file contains all the compiler specific defines