View | Details | Raw Unified | Return to bug 931
Collapse All | Expand All

(-)a/src/core/assert.h (-4 / +3 lines)
 Lines 23-28    Link Here 
23
#ifdef NS3_ASSERT_ENABLE
23
#ifdef NS3_ASSERT_ENABLE
24
24
25
#include <iostream>
25
#include <iostream>
26
#include <exception>
26
27
27
/**
28
/**
28
 * \ingroup core
29
 * \ingroup core
 Lines 57-64    Link Here 
57
          std::cerr << "assert failed. file=" << __FILE__ <<    \
58
          std::cerr << "assert failed. file=" << __FILE__ <<    \
58
            ", line=" << __LINE__ << ", cond=\""#condition <<   \
59
            ", line=" << __LINE__ << ", cond=\""#condition <<   \
59
            "\"" << std::endl;                                  \
60
            "\"" << std::endl;                                  \
60
          int *a = 0;                                           \
61
          std::terminate ();                                    \
61
          *a = 0;                                               \
62
        }                                                       \
62
        }                                                       \
63
    }                                                           \
63
    }                                                           \
64
  while (false)
64
  while (false)
 Lines 79-86    Link Here 
79
      if (!(condition))                         \
79
      if (!(condition))                         \
80
        {                                       \
80
        {                                       \
81
          std::cerr << message << std::endl;    \
81
          std::cerr << message << std::endl;    \
82
          int *a = 0;                           \
82
          std::terminate ();                    \
83
          *a = 0;                               \
84
        }                                       \
83
        }                                       \
85
    }                                           \
84
    }                                           \
86
  while (false)
85
  while (false)

Return to bug 931