#include <RDGeneral/export.h>
#include <cassert>
#include <string>
#include <iostream>
#include <stdexcept>
#include "BoostStartInclude.h"
#include <RDGeneral/RDLog.h>
#include "BoostEndInclude.h"
Go to the source code of this file.
◆ ASSERT_INVARIANT
#define ASSERT_INVARIANT |
( |
|
expr, |
|
|
|
mess |
|
) |
| assert(expr) |
◆ CHECK_INVARIANT
#define CHECK_INVARIANT |
( |
|
expr, |
|
|
|
mess |
|
) |
| |
Value: if (!(expr)) { \
__LINE__); \
BOOST_LOG(
rdErrorLog) <<
"\n\n****\n" << inv <<
"****\n\n"; \
throw inv; \
}
RDKIT_RDGENERAL_EXPORT RDLogger rdErrorLog
Definition at line 101 of file Invariant.h.
◆ INVARIANT_EXCEPTION_METHOD
#define INVARIANT_EXCEPTION_METHOD 1 |
◆ POSTCONDITION
#define POSTCONDITION |
( |
|
expr, |
|
|
|
mess |
|
) |
| |
Value: if (!(expr)) { \
__LINE__); \
BOOST_LOG(
rdErrorLog) <<
"\n\n****\n" << inv <<
"****\n\n"; \
throw inv; \
}
Definition at line 117 of file Invariant.h.
◆ PRECONDITION
#define PRECONDITION |
( |
|
expr, |
|
|
|
mess |
|
) |
| |
Value: if (!(expr)) { \
__LINE__); \
BOOST_LOG(
rdErrorLog) <<
"\n\n****\n" << inv <<
"****\n\n"; \
throw inv; \
}
Definition at line 109 of file Invariant.h.
◆ RANGE_CHECK
#define RANGE_CHECK |
( |
|
lo, |
|
|
|
x, |
|
|
|
hi |
|
) |
| |
Value: if ((lo) > (hi) || (x) < (lo) || (x) > (hi)) { \
std::stringstream errstr; \
errstr << lo << " <= " << x << " <= " << hi; \
__LINE__); \
BOOST_LOG(
rdErrorLog) <<
"\n\n****\n" << inv <<
"****\n\n"; \
throw inv; \
}
Definition at line 132 of file Invariant.h.
◆ rdcast
#define rdcast static_cast |
◆ RDUNUSED_PARAM
#define RDUNUSED_PARAM |
( |
|
x | ) |
(void)x; |
◆ TEST_ASSERT
#define TEST_ASSERT |
( |
|
expr | ) |
|
Value: if (!(expr)) { \
__FILE__, __LINE__); \
BOOST_LOG(
rdErrorLog) <<
"\n\n****\n" << inv <<
"****\n\n"; \
throw inv; \
}
Definition at line 152 of file Invariant.h.
◆ UNDER_CONSTRUCTION
#define UNDER_CONSTRUCTION |
( |
|
fn | ) |
|
Value:
"This routine is still under development", fn, \
__FILE__, __LINE__); \
BOOST_LOG(
rdErrorLog) <<
"\n\n****\n" << inv <<
"****\n\n"; \
throw inv;
Definition at line 125 of file Invariant.h.
◆ URANGE_CHECK
#define URANGE_CHECK |
( |
|
x, |
|
|
|
hi |
|
) |
| |
Value: if (x >= (hi)) { \
std::stringstream errstr; \
errstr << x << " < " << hi; \
__LINE__); \
BOOST_LOG(
rdErrorLog) <<
"\n\n****\n" << inv <<
"****\n\n"; \
throw inv; \
}
Definition at line 142 of file Invariant.h.