Go to the documentation of this file. 14 #define MRPT_VIRTUAL_LOG_MACROS \ 16 virtual void log_debug(const char* format, ...) \ 19 va_start(argptr, format); \ 20 fprintf(stdout, "DEBUG: "); \ 21 vfprintf(stdout, format, argptr); \ 22 fprintf(stdout, "\n"); \ 27 virtual void log_info(const char* format, ...) \ 30 va_start(argptr, format); \ 31 fprintf(stdout, "INFO: "); \ 32 vfprintf(stdout, format, argptr); \ 33 fprintf(stdout, "\n"); \ 38 virtual void log_warn(const char* format, ...) \ 41 va_start(argptr, format); \ 42 fprintf(stderr, "WARNING: "); \ 43 vfprintf(stderr, format, argptr); \ 44 fprintf(stderr, "\n"); \ 49 virtual void log_error(const char* format, ...) \ 52 va_start(argptr, format); \ 53 fprintf(stderr, "ERROR: "); \ 54 vfprintf(stderr, format, argptr); \ 55 fprintf(stderr, "\n"); \ 59 #define MRPT_ROS_LOG_MACROS \ 61 virtual void log_debug(const char* format, ...) \ 65 va_start(argptr, format); \ 66 vsprintf(buffer, format, argptr); \ 67 ROS_DEBUG("%s", buffer); \ 72 virtual void log_info(const char* format, ...) \ 76 va_start(argptr, format); \ 77 vsprintf(buffer, format, argptr); \ 78 ROS_INFO("%s", buffer); \ 83 virtual void log_warn(const char* format, ...) \ 87 va_start(argptr, format); \ 88 vsprintf(buffer, format, argptr); \ 89 ROS_WARN("%s", buffer); \ 94 virtual void log_error(const char* format, ...) \ 98 va_start(argptr, format); \ 99 vsprintf(buffer, format, argptr); \ 100 ROS_ERROR("%s", buffer); \
mrpt_bridge
Author(s): Markus Bader
, Raphael Zack
autogenerated on Fri Feb 28 2020 03:22:14