blob: 77de94643ff30700765ca4f0848571228fd80c15 [file] [log] [blame]
#ifndef PARLIB_INC_DEBUG_H
#define PARLIB_INC_DEBUG_H
#include <ros/common.h>
#include <stdio.h>
#include <stdarg.h>
#ifdef __cplusplus
extern "C" {
#endif
void ros_debugfmt(void (*putch)(int, void**), void **putdat, const char *fmt, ...);
void ros_vdebugfmt(void (*putch)(int, void**), void **putdat, const char *fmt, va_list);
int ros_debug(const char *fmt, ...);
int ros_vdebug(const char *fmt, va_list);
//#define PRINTD_DEBUG
#ifdef PRINTD_DEBUG
#define printd(args...) printf(args)
#else
#define printd(args...) {}
#endif
#ifdef __cplusplus
}
#endif
#endif /* !PARLIB_INC_DEBUG_H */