src/core/fatal-error.h
changeset 324 7571b28edc22
parent 278 fc1133fee95d
child 344 b547ec7dbbc1
--- a/src/core/fatal-error.h	Wed Feb 21 20:04:32 2007 +0100
+++ b/src/core/fatal-error.h	Wed Feb 21 20:07:39 2007 +0100
@@ -36,8 +36,12 @@
  * builds.
  */
 #define NS_FATAL_ERROR(msg)				\
-  std::cout << msg << std::endl;			\
-  ns3::AssertBreakpoint ();
+  do                                                    \
+    {                                                   \
+      std::cout << msg << std::endl;			\
+      ns3::AssertBreakpoint ();                         \
+    }                                                   \
+  while (false)
 
 
 #endif /* FATAL_ERROR_H */