10#ifndef ERS_INVALID_REFERENCE
11#define ERS_INVALID_REFERENCE
49#if (!defined(N_ERS_ASSERT))
50#if (defined(__GNUC__))
51#define ERS_PRE_CHECK_PTR(p) if (! __builtin_constant_p(p)) ers::InvalidReferenceIssue::check_reference(ERS_HERE,ers::error,p,#p,ers::resp_client) ;
53#define ERS_PRE_CHECK_PTR(p) ers::InvalidReferenceIssue::check_reference(ERS_HERE,ers::error,p,#p,ers::resp_client)
56#define ERS_PRE_CHECK_PTR(p)
64#if (!defined(N_ERS_ASSERT))
65#if (defined(__GNUC__))
66#define ERS_CHECK_PTR(p) if (! __builtin_constant_p(p)) ers::InvalidReferenceIssue::check_reference(ERS_HERE,ers::error,p,#p,ers::resp_server)
68#define ERS_CHECK_PTR(p) ers::InvalidReferenceIssue::check_reference(ERS_HERE,ers::error,p,#p,ers::resp_server)
71#define ERS_CHECK_PTR(p)
Source context for Issue.
static const char *const REFERENCE_C_PTR_TYPE
void pointer(const void *p)
static const char *const REFERENCE_NAME_KEY
static const char *const CLASS_NAME
static const char *const REFERENCE_VALUE_KEY
virtual const char * get_class_name() const
Get key for class (used for serialisation)
static const char *const REFERENCE_TYPE_KEY
static void check_reference(const Context &context, severity_t s, const void *pointer, const char *ptr_name, responsibility_t r)
const std::string & message() const
Message.
enum ers::_responsibility_t responsibility_t
enum ers::_severity_t severity_t