Go to the documentation of this file. 1 #ifndef MRPT_BRIDGE_LOG_MACROS_H 2 #define MRPT_BRIDGE_LOG_MACROS_H 6 #define MRPT_VIRTUAL_LOG_MACROS \ 8 virtual void log_debug(const char* format, ...) \ 11 va_start(argptr, format); \ 12 fprintf(stdout, "DEBUG: "); \ 13 vfprintf(stdout, format, argptr); \ 14 fprintf(stdout, "\n"); \ 19 virtual void log_info(const char* format, ...) \ 22 va_start(argptr, format); \ 23 fprintf(stdout, "INFO: "); \ 24 vfprintf(stdout, format, argptr); \ 25 fprintf(stdout, "\n"); \ 30 virtual void log_warn(const char* format, ...) \ 33 va_start(argptr, format); \ 34 fprintf(stderr, "WARNING: "); \ 35 vfprintf(stderr, format, argptr); \ 36 fprintf(stderr, "\n"); \ 41 virtual void log_error(const char* format, ...) \ 44 va_start(argptr, format); \ 45 fprintf(stderr, "ERROR: "); \ 46 vfprintf(stderr, format, argptr); \ 47 fprintf(stderr, "\n"); \ 51 #define MRPT_ROS_LOG_MACROS \ 53 virtual void log_debug(const char* format, ...) \ 57 va_start(argptr, format); \ 58 vsprintf(buffer, format, argptr); \ 59 ROS_DEBUG("%s", buffer); \ 64 virtual void log_info(const char* format, ...) \ 68 va_start(argptr, format); \ 69 vsprintf(buffer, format, argptr); \ 70 ROS_INFO("%s", buffer); \ 75 virtual void log_warn(const char* format, ...) \ 79 va_start(argptr, format); \ 80 vsprintf(buffer, format, argptr); \ 81 ROS_WARN("%s", buffer); \ 86 virtual void log_error(const char* format, ...) \ 90 va_start(argptr, format); \ 91 vsprintf(buffer, format, argptr); \ 92 ROS_ERROR("%s", buffer); \ 96 #endif // MRPT_BRIDGE_LOG_MACROS_H
mrpt_bridge
Author(s): Markus Bader
, Raphael Zack
autogenerated on Sat Apr 28 2018 02:49:17