Gabriele Contini
2020-03-15 36ce07093b68b07513149577c209ae7a57ab356b
src/library/base/logger.h
@@ -1,11 +1,13 @@
#ifndef logger_INCLUDED
#define logger_INCLUDED
#ifndef LOG_ENABLED
#include <errno.h>
#ifdef __cplusplus
extern "C" {
#endif
#define LOG_DISABLED 1
#ifndef LOG_DISABLED
#include <errno.h>
#include <string.h>
#define clean_errno() (errno == 0 ? "None" : strerror(errno))
@@ -25,7 +27,7 @@
#define LOG_ERROR(M, ...)
#endif
void _log(char* format, ...);
void _log(const char* format, ...);
void _shutdown_log();
#ifdef __cplusplus