#include <cassert>
#include <memory>
#include <sstream>
#include <stdexcept>
#include "coal/config.hh"
#include "coal/deprecated.hh"
#include "coal/warning.hh"
Go to the source code of this file.
◆ COAL_ASSERT
#define COAL_ASSERT |
( |
|
check, |
|
|
|
message, |
|
|
|
exception |
|
) |
| |
Value: { \
COAL_UNUSED_VARIABLE(exception(message)); \
assert((
check) && message); \
}
Definition at line 82 of file include/coal/fwd.hh.
◆ COAL_COMPILER_DIAGNOSTIC_IGNORED_DEPRECECATED_DECLARATIONS
#define COAL_COMPILER_DIAGNOSTIC_IGNORED_DEPRECECATED_DECLARATIONS |
◆ COAL_COMPILER_DIAGNOSTIC_IGNORED_MAYBE_UNINITIALIZED
#define COAL_COMPILER_DIAGNOSTIC_IGNORED_MAYBE_UNINITIALIZED |
◆ COAL_COMPILER_DIAGNOSTIC_POP
#define COAL_COMPILER_DIAGNOSTIC_POP |
◆ COAL_COMPILER_DIAGNOSTIC_PUSH
#define COAL_COMPILER_DIAGNOSTIC_PUSH |
◆ COAL_ONLY_USED_FOR_DEBUG
#define COAL_ONLY_USED_FOR_DEBUG |
( |
|
var | ) |
|
◆ COAL_PRETTY_FUNCTION
#define COAL_PRETTY_FUNCTION __PRETTY_FUNCTION__ |
◆ COAL_THROW_PRETTY
#define COAL_THROW_PRETTY |
( |
|
message, |
|
|
|
exception |
|
) |
| |
Value: { \
std::stringstream ss; \
ss << "From file: " << __FILE__ << "\n"; \
ss << "at line: " << __LINE__ << "\n"; \
ss << "message: " << message << "\n"; \
throw exception(ss.str()); \
}
Definition at line 64 of file include/coal/fwd.hh.
◆ COAL_UNUSED_VARIABLE
#define COAL_UNUSED_VARIABLE |
( |
|
var | ) |
(void)(var) |