aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/espik_debug.h12
1 files changed, 3 insertions, 9 deletions
diff --git a/src/espik_debug.h b/src/espik_debug.h
index 22d7c7b..dca4f5f 100644
--- a/src/espik_debug.h
+++ b/src/espik_debug.h
@@ -5,24 +5,18 @@
#define DEBUG_FILENO stderr
-#ifdef _ESPIK_DEBUG_
-#ifdef __GNUC__
+#if defined (_ESPIK_DEBUG_) && defined (__GNUC__)
#define espik_debug_print(fmt, ...) \
{ \
fprintf (DEBUG_FILENO, "%s+%i @%s: '", __FILE__, __LINE__, __func__); \
fprintf (DEBUG_FILENO, fmt, ##__VA_ARGS__); \
fprintf (DEBUG_FILENO, "'\n"); \
}
-#else /* __GNUC__ */
+#else
#define espik_debug_print(fmt, ...) \
{ \
}
-#endif /* __GNUC__ */
-#else /* _ESPIK_DEBUG_ */
-#define espik_debug_print(fmt, ...) \
-{ \
-}
-#endif /* _ESPIK_DEBUG_ */
+#endif /* _ESPIK_DEBUG_ && __GNUC__ */
inline void espik_bt (void);
void espik_debug_init();