A Discrete-Event Network Simulator
API
assert.h File Reference

Definition of assertion macros NS_ASSERT() and NS_ASSERT_MSG(). More...

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

Go to the source code of this file.

Macros

#define NS_ASSERT(condition)
 At runtime, in debugging builds, if this condition is not true, the program prints the source file, line number and unverified condition and halts by calling std::terminate. More...
 
#define NS_ASSERT_MSG(condition, message)
 At runtime, in debugging builds, if this condition is not true, the program prints the message to output and halts by calling std::terminate. More...
 

Detailed Description

Definition of assertion macros NS_ASSERT() and NS_ASSERT_MSG().

Definition in file assert.h.