A Discrete-Event Network Simulator
API
Macros
abort.h File Reference

NS_ABORT_x macro definitions. More...

#include "fatal-error.h"

Go to the source code of this file.

Macros

#define NS_ABORT_IF(cond)
 Abnormal program termination if a condition is true. More...
 
#define NS_ABORT_MSG(msg)
 Unconditional abnormal program termination with a message. More...
 
#define NS_ABORT_MSG_IF(cond, msg)
 Abnormal program termination if a condition is true, with a message. More...
 
#define NS_ABORT_MSG_UNLESS(cond, msg)   NS_ABORT_MSG_IF (!(cond),msg)
 Abnormal program termination if a condition is false, with a message. More...
 
#define NS_ABORT_UNLESS(cond)   NS_ABORT_IF (!(cond))
 Abnormal program termination if a condition is false. More...
 

Detailed Description

NS_ABORT_x macro definitions.

Definition in file abort.h.