29#include <casacore/casa/aips.h>
30#include <casacore/casa/Exceptions/Error.h>
121void assert_(
bool expr,
const char* msg,
const char* file,
int line);
133#define AlwaysAssert(expr, exception) \
135 casacore::assert_<exception>(static_cast<bool>(expr), "Failed AlwaysAssert " #expr, __FILE__, \
136 static_cast<int>(__LINE__)); \
138#define AlwaysAssertExit(expr) \
140 casacore::assert_<casacore::AbortError>(static_cast<bool>(expr), \
141 "Unrecoverable AlwaysAssertExit: " #expr, __FILE__, \
142 static_cast<int>(__LINE__)); \
145#if defined(AIPS_DEBUG)
147#define DebugAssert(expr, exception) \
149 casacore::assert_<exception>(static_cast<bool>(expr), "Failed Assertion: " #expr, __FILE__, \
150 static_cast<int>(__LINE__)); \
152#define DebugAssertExit(expr) \
154 casacore::assert_<casacore::AbortError>(static_cast<bool>(expr), \
155 "Unrecoverable Assertion: " #expr, __FILE__, \
156 static_cast<int>(__LINE__)); \
161#define DebugAssert(expr, exception)
162#define DebugAssertExit(expr)
168#ifndef CASACORE_NO_AUTO_TEMPLATES
169#include <casacore/casa/Utilities/Assert.tcc>
void assert_(bool expr, const char *msg, const char *file, int line)
For temporary backward namespace compatibility, use casa as alias for casacore.