#include "fatal-error.h"
#include <iostream>
Go to the source code of this file.
Defines | |
#define | NS_ABORT_MSG(msg) |
#define | NS_ABORT_IF(cond) |
#define | NS_ABORT_MSG_IF(cond, msg) |
#define | NS_ABORT_UNLESS(cond) NS_ABORT_IF(!(cond)) |
#define | NS_ABORT_MSG_UNLESS(cond, msg) NS_ABORT_MSG_IF(!(cond),msg) |
#define NS_ABORT_IF | ( | cond | ) |
#define NS_ABORT_MSG | ( | msg | ) |
#define NS_ABORT_MSG_IF | ( | cond, | |||
msg | ) |
do { \ if (cond) \ { \ std::cerr << "file=" << __FILE__ << \ ", line=" << __LINE__ << ", abort on=\""#cond << \ "\", msg=\"" << msg << "\"" << std::endl; \ int *a = 0; \ *a = 0; \ } \ } while (false)
Definition at line 46 of file abort.h.
Referenced by ns3::GlobalRouter::BuildNetworkLSAs(), ns3::GlobalRouter::DiscoverLSAs(), ns3::PcapWriter::Open(), ns3::GlobalRouter::ProcessBridgedBroadcastLink(), ns3::GlobalRouter::ProcessPointToPointLink(), and ns3::GlobalRouter::ProcessSingleBroadcastLink().
#define NS_ABORT_MSG_UNLESS | ( | cond, | |||
msg | ) | NS_ABORT_MSG_IF(!(cond),msg) |
Definition at line 61 of file abort.h.
Referenced by ns3::GlobalRouter::BuildNetworkLSAs(), ns3::GlobalRouter::DiscoverLSAs(), ns3::GlobalRouter::NetDeviceIsBridged(), ns3::PcapWriter::Open(), ns3::GlobalRouter::ProcessBridgedBroadcastLink(), ns3::GlobalRouter::ProcessPointToPointLink(), and ns3::GlobalRouter::ProcessSingleBroadcastLink().