equal
deleted
inserted
replaced
34 * the ns3::AssertBreakpoint function. This macro is enabled |
34 * the ns3::AssertBreakpoint function. This macro is enabled |
35 * unconditionally in all builds, including debug and optimized |
35 * unconditionally in all builds, including debug and optimized |
36 * builds. |
36 * builds. |
37 */ |
37 */ |
38 #define NS_FATAL_ERROR(msg) \ |
38 #define NS_FATAL_ERROR(msg) \ |
39 std::cout << msg << std::endl; \ |
39 do \ |
40 ns3::AssertBreakpoint (); |
40 { \ |
|
41 std::cout << msg << std::endl; \ |
|
42 ns3::AssertBreakpoint (); \ |
|
43 } \ |
|
44 while (false) |
41 |
45 |
42 |
46 |
43 #endif /* FATAL_ERROR_H */ |
47 #endif /* FATAL_ERROR_H */ |