00001 #ifndef __DXL_ASSERT_H 00002 #define __DXL_ASSERT_H 00003 00004 #include <ros/ros.h> 00005 00006 #define DXL_SAFE_CALL(call) \ 00007 do { \ 00008 int ret = call; \ 00009 if (ret != DXL_SUCCESS) { \ 00010 ROS_FATAL("DXL CALL FAILED\n\tfile = %s\n\tline = %d\n\tcall = %s\n\tmessage = %s", __FILE__, __LINE__, #call, CDxlCom::translateErrorCode(ret)); \ 00011 ROS_ISSUE_BREAK(); \ 00012 } \ 00013 } while (0) 00014 00015 #endif /* __DXL_ASSERT_H */