A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
abort.h File Reference

NS_ABORT_x macro definitions. More...

#include "fatal-error.h"
+ Include dependency graph for abort.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

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

Detailed Description

NS_ABORT_x macro definitions.

Definition in file abort.h.