A Discrete-Event Network Simulator
API
fatal-error.h File Reference

NS_FATAL_x macro definitions. More...

#include <iostream>
#include <exception>
#include <cstdlib>
#include "fatal-impl.h"
+ Include dependency graph for fatal-error.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define NS_FATAL_ERROR(msg)   NS_FATAL_ERROR_IMPL (msg, true)
 Report a fatal error with a message and terminate. More...
 
#define NS_FATAL_ERROR_CONT(msg)   NS_FATAL_ERROR_IMPL (msg, false)
 Report a fatal error with a message, deferring termination. More...
 
#define NS_FATAL_ERROR_IMPL(msg, fatal)
 
#define NS_FATAL_ERROR_IMPL_NO_MSG(fatal)
 Fatal error reporting implementation. More...
 
#define NS_FATAL_ERROR_NO_MSG()   NS_FATAL_ERROR_IMPL_NO_MSG (true)
 Report a fatal error and terminate. More...
 
#define NS_FATAL_ERROR_NO_MSG_CONT()   NS_FATAL_ERROR_IMPL_NO_MSG (false)
 Report a fatal error, deferring termination. More...
 

Detailed Description

NS_FATAL_x macro definitions.

Definition in file fatal-error.h.

Macro Definition Documentation

#define NS_FATAL_ERROR_IMPL (   msg,
  fatal 
)
Value:
do \
{ \
std::cerr << "msg=\"" << msg << "\", "; \
} \
while (false)
#define NS_FATAL_ERROR_IMPL_NO_MSG(fatal)
Fatal error reporting implementation.
Definition: fatal-error.h:73

Definition at line 84 of file fatal-error.h.