libintrovirt v0.57.4
IntroVirt introspection library
Loading...
Searching...
No Matches
introvirt_assert.hh File Reference
#include "compiler.hh"
#include <boost/stacktrace.hpp>
#include <log4cxx/logger.h>
#include <cassert>
#include <cstdlib>
#include <iostream>
Include dependency graph for introvirt_assert.hh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  introvirt
 Core IntroVirt classes.
 

Macros

#define introvirt_assert(condition, msg)
 

Macro Definition Documentation

◆ introvirt_assert

#define introvirt_assert (   condition,
  msg 
)
Value:
if (unlikely(!(condition))) { \
static log4cxx::LoggerPtr logger(log4cxx::Logger::getLogger("introvirt.assert")); \
LOG4CXX_FATAL(logger, "Assertion '" << #condition << "' failed : " << msg << '\n' \
<< __FILE__ << ":" << __LINE__ << " " \
<< __PRETTY_FUNCTION__ << '\n' \
<< boost::stacktrace::stacktrace()); \
exit(255); \
}
#define unlikely(x)
Definition compiler.hh:27