#ifndef _LOG_H
#define _LOG_H
#ifdef __cpluscplus
extern "C"
{
#endif
#include <stdio.h>
#define LOG_DEBUG(format, ...) \
{ \
fprintf(stdout, "DEBUG " format "\n", ##__VA_ARGS__); \
fflush(stdout); \
}
#define LOG_INFO(format, ...) \
fprintf(stdout, "INFO " format "\n", ##__VA_ARGS__); \
#define LOG_ERROR(format, ...) \
fprintf(stderr, "ERROR " format "\n", ##__VA_ARGS__); \
fflush(stderr); \