author | Mathieu Lacage <mathieu.lacage@sophia.inria.fr> |
Wed, 29 Aug 2007 16:42:55 +0200 | |
changeset 1396 | 105d16b9bf04 |
parent 324 | 7571b28edc22 |
permissions | -rw-r--r-- |
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ #include "ns3/debug.h" #include "ns3/assert.h" NS_DEBUG_COMPONENT_DEFINE ("MyComponentA"); // declare other function namespace foo { void OneFunction (void); } int main (int argc, int argv) { NS_DEBUG ("nargc="<<argc); foo::OneFunction (); NS_DEBUG ("other debug output"); int a; a = 0; NS_ASSERT (a == 0); NS_ASSERT_MSG (a == 0, "my msg"); NS_ASSERT (a != 0); NS_ASSERT_MSG (a != 0, "my 2 msg"); }