Go to the documentation of this file. 32 #ifndef ROSCONSOLE_ROSASSERT_H 33 #define ROSCONSOLE_ROSASSERT_H 95 # if defined (__MINGW32__) 96 # define ROS_ISSUE_BREAK() DebugBreak(); 98 # define ROS_ISSUE_BREAK() __debugbreak(); 100 #elif defined(__powerpc64__) 101 # define ROS_ISSUE_BREAK() asm volatile ("tw 31,1,1"); 102 #elif defined(__i386__) || defined(__ia64__) || defined(__x86_64__) 103 # define ROS_ISSUE_BREAK() asm("int $3"); 106 # define ROS_ISSUE_BREAK() abort(); 110 #ifndef ROS_ASSERT_ENABLED 111 #define ROS_ASSERT_ENABLED 115 #ifdef ROS_ASSERT_ENABLED 116 #define ROS_BREAK() \ 118 ROS_FATAL("BREAKPOINT HIT\n\tfile = %s\n\tline=%d\n", __FILE__, __LINE__); \ 122 #define ROS_ASSERT(cond) \ 125 ROS_FATAL("ASSERTION FAILED\n\tfile = %s\n\tline = %d\n\tcond = %s\n", __FILE__, __LINE__, #cond); \ 130 #define ROS_ASSERT_MSG(cond, ...) \ 133 ROS_FATAL("ASSERTION FAILED\n\tfile = %s\n\tline = %d\n\tcond = %s\n\tmessage = ", __FILE__, __LINE__, #cond); \ 134 ROS_FATAL(__VA_ARGS__); \ 140 #define ROS_ASSERT_CMD(cond, cmd) \ 150 #define ROS_ASSERT(cond) 151 #define ROS_ASSERT_MSG(cond, ...) 152 #define ROS_ASSERT_CMD(cond, cmd) 155 #endif // ROSCONSOLE_ROSASSERT_H
rosconsole
Author(s): Josh Faust
autogenerated on Sun Feb 3 2019 03:29:44