src/core/fatal-error.h
changeset 324 7571b28edc22
parent 278 fc1133fee95d
child 344 b547ec7dbbc1
equal deleted inserted replaced
323:ae826c265100 324:7571b28edc22
    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 */