2007-02-07 08:49:54 +01:00
|
|
|
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
|
|
|
|
|
#include "ns3/debug.h"
|
|
|
|
|
|
|
|
|
|
NS3_DEBUG_COMPONENT_DEFINE ("MyComponentA");
|
|
|
|
|
|
|
|
|
|
// declare other function
|
|
|
|
|
namespace foo {
|
|
|
|
|
void OneFunction (void);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
int main (int argc, int argv)
|
|
|
|
|
{
|
|
|
|
|
NS3_DEBUG ("nargc="<<argc);
|
|
|
|
|
|
|
|
|
|
foo::OneFunction ();
|
|
|
|
|
|
|
|
|
|
NS3_DEBUG ("other debug output");
|
2007-02-13 09:45:32 +01:00
|
|
|
|
2007-02-13 10:23:10 +01:00
|
|
|
int a;
|
|
|
|
|
a = 0;
|
2007-02-13 09:45:32 +01:00
|
|
|
|
|
|
|
|
NS3_ASSERT (a == 0);
|
|
|
|
|
NS3_ASSERT_MSG (a == 0, "my msg");
|
|
|
|
|
NS3_ASSERT (a != 0)
|
|
|
|
|
NS3_ASSERT_MSG (a != 0, "my 2 msg");
|
2007-02-07 08:49:54 +01:00
|
|
|
}
|