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

NS_FATAL_x macro definitions. More...

#include "fatal-impl.h"
#include "log.h"
#include <cstdlib>
#include <exception>
#include <iostream>
#include <string_view>
+ 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.

Namespaces

 ns3
 Every class exported by the ns3 library is enclosed in the ns3 namespace.
 

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)
 Fatal error reporting with a message, implementation. More...
 
#define NS_FATAL_ERROR_IMPL_NO_MSG(fatal)
 Fatal error reporting with no message, 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...
 

Variables

constexpr std::string_view ns3::NS_FATAL_MSG {"NS_FATAL, terminating"}
 Output string marking imminent invocation of std::terminate. More...
 

Detailed Description

NS_FATAL_x macro definitions.

Definition in file fatal-error.h.