aboutsummaryrefslogtreecommitdiffstats
path: root/src/include/debug.h
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-03-18 20:14:49 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-03-18 20:14:49 +0000
commitd86b7080f58264a1952e1cb67b238728c0bdfd71 (patch)
tree16442ac809c77ca0e85b1c94d0ddcae1531ec50d /src/include/debug.h
parente4534bc973bd77cfb41d82539e2eb7e9798001d8 (diff)
downloadChibiOS-d86b7080f58264a1952e1cb67b238728c0bdfd71.tar.gz
ChibiOS-d86b7080f58264a1952e1cb67b238728c0bdfd71.tar.bz2
ChibiOS-d86b7080f58264a1952e1cb67b238728c0bdfd71.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@854 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'src/include/debug.h')
-rw-r--r--src/include/debug.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/include/debug.h b/src/include/debug.h
index 19a7cb7d4..67a5d65b4 100644
--- a/src/include/debug.h
+++ b/src/include/debug.h
@@ -126,22 +126,23 @@ typedef struct {
#define chDbgTrace(otp, ntp) {}
#endif
+#if !defined(__DOXYGEN__)
#ifdef __cplusplus
extern "C" {
#endif
-#if !defined(__DOXYGEN__) && CH_DBG_ENABLE_TRACE
+#if CH_DBG_ENABLE_TRACE
extern TraceBuffer trace_buffer;
void trace_init(void);
void chDbgTrace(Thread *otp, Thread *ntp);
#endif
-#if !defined(__DOXYGEN__) && \
- (CH_DBG_ENABLE_ASSERTS || CH_DBG_ENABLE_CHECKS || CH_DBG_ENABLE_STACK_CHECK)
+#if CH_DBG_ENABLE_ASSERTS || CH_DBG_ENABLE_CHECKS || CH_DBG_ENABLE_STACK_CHECK
extern char *panic_msg;
void chDbgPanic(char *msg);
#endif
#ifdef __cplusplus
}
#endif
+#endif /* !defined(__DOXYGEN__) */
#endif /* _DEBUG_H_ */