rt/include/rt/log.h

20 lines
268 B
C

#pragma once
#ifdef __cplusplus
extern "C" {
#endif
#ifndef RT_LOG_ENABLE
#define RT_LOG_ENABLE 0
#endif
#if RT_LOG_ENABLE
__attribute__((format(printf, 1, 2))) void rt_logf(const char *fmt, ...);
#else
#define rt_logf(fmt, ...)
#endif
#ifdef __cplusplus
}
#endif