Bugzilla – Attachment #904: alternative patch using std::terminate for bug #931
#ifdef NS3_ASSERT_ENABLE
#include <iostream>
#include <exception>
/**
* \ingroup core
std::cerr << "assert failed. file=" << __FILE__ << \
", line=" << __LINE__ << ", cond=\""#condition << \
"\"" << std::endl; \
int *a = 0; \
std::terminate (); \
*a = 0; \
} \
while (false)
if (!(condition)) \
{ \
std::cerr << message << std::endl; \