40#ifndef GEOGRAM_BASIC_PSM
41#define GEOGRAM_BASIC_PSM
57#ifndef GEOGRAM_BASIC_ASSERT
59#define geo_assert(x) assert(x)
60#define geo_range_assert(x, min_val, max_val) \
61 assert((x) >= (min_val) && (x) <= (max_val))
62#define geo_assert_not_reached assert(0)
65#define geo_debug_assert(x) assert(x)
66#define geo_debug_range_assert(x, min_val, max_val) \
67 assert((x) >= (min_val) && (x) <= (max_val))
69#define geo_debug_assert(x)
70#define geo_debug_range_assert(x, min_val, max_val)
74#define geo_parano_assert(x) geo_assert(x)
75#define geo_parano_range_assert(x, min_val, max_val) \
76 geo_range_assert(x, min_val, max_val)
78#define geo_parano_assert(x)
79#define geo_parano_range_assert(x, min_val, max_val)
88#ifndef geo_cite_with_info
89#define geo_cite_with_info(x,y)
92#ifndef GEOGRAM_BASIC_LOGGER
96 inline std::ostream& out(
const std::string& name) {
97 return std::cout <<
" [" << name <<
"]";
100 inline std::ostream& err(
const std::string& name) {
101 return std::cerr <<
"E[" << name <<
"]";
104 inline std::ostream& warn(
const std::string& name) {
105 return std::cerr <<
"W[" << name <<
"]";
113#ifndef FPG_UNCERTAIN_VALUE
114#define FPG_UNCERTAIN_VALUE 0
117#define GEOGRAM_WITH_PDEL
Assertion checking mechanism.
Global Vorpaline namespace.