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

NS_ASSERT() and NS_ASSERT_MSG() macro definitions. More...

#include <iostream>
#include "fatal-error.h"

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

NS_ASSERT() and NS_ASSERT_MSG() macro definitions.

Definition in file assert.h.