Modules | |
Assert | |
assert functions and macros | |
Logging | |
Logging functions and macros. | |
Defines | |
#define | NS_BREAKPOINT() ns3::BreakpointFallback () |
#define | NS_FATAL_ERROR(msg) |
fatal error handling |
#define NS_BREAKPOINT | ( | ) | ns3::BreakpointFallback () |
Inserts a breakpoint instruction (or equivalent system call) into the code for selected machines. When an NS_ASSERT cannot verify its condition, this macro is used. Falls back to calling AssertBreakpoint() for architectures where breakpoint assembly instructions are not supported.
#define NS_FATAL_ERROR | ( | msg | ) |
Value:
do \ { \ std::cerr << msg << std::endl; \ int *a = 0; \ *a = 0; \ } \ while (false)
msg | message to output when this macro is hit. |
Referenced by ns3::Watchdog::SetArguments(), and ns3::Timer::SetArguments().