jitterbug/log.h

23 lines
383 B
C
Raw Normal View History

2023-01-16 02:20:53 +02:00
#ifndef __JITTERBUG_LOG_H
#define __JITTERBUG_LOG_H
#include "config.h"
#ifdef JB_ENABLE_VERBOSE
#define VERBOSE printf
#else
#define VERBOSE(...)
#endif
#ifdef JB_ENABLE_WARN
#define WARN printf
#else
#define WARN(...)
#endif
#define ERROR(...) fprintf(stderr, __VA_ARGS__)
#define STUB(M_where, M_kind) WARN("stub: %s: %s\n", (M_where), (M_kind))
#endif // __JITTERBUG_LOG_H