CS_DISABLE_(STDIO|HEXDUMP) -> CS_ENABLE_$1

PUBLISHED_FROM=9fd0cebfa8df53b5d9574a8d013305ddda5e7a18
This commit is contained in:
Deomid Ryabkov authored and Cesanta Bot committed 2016-10-14 10:22:30 +00:00
1 parent 618bef0eb2
commit 241090a82b
9 files changed
+140 -110

No files matched your search

+11 -3
View File
@@ -6,10 +6,18 @@
#ifndef CS_COMMON_CS_DBG_H_
#define CS_COMMON_CS_DBG_H_
#if !CS_DISABLE_STDIO
#if CS_ENABLE_STDIO
#include <stdio.h>
#endif
#ifndef CS_ENABLE_DEBUG
#define CS_ENABLE_DEBUG 0
#endif
#ifndef CS_LOG_TS_DIFF
#define CS_LOG_TS_DIFF 0
#endif
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
@@ -28,7 +36,7 @@ enum cs_log_level {
void cs_log_set_level(enum cs_log_level level);
#if !CS_DISABLE_STDIO
#if CS_ENABLE_STDIO
void cs_log_set_file(FILE *file);
@@ -56,7 +64,7 @@ void cs_log_printf(const char *fmt, ...);
#endif
#else /* CS_DISABLE_STDIO */
#else /* CS_ENABLE_STDIO */
#define LOG(l, x)
#define DBG(x)