diff options
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/debug.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/include/debug.h b/src/include/debug.h index 82e784040..3c51f0837 100644 --- a/src/include/debug.h +++ b/src/include/debug.h @@ -118,6 +118,12 @@ typedef struct { #define chDbgPanic(msg) {}
#endif
+#if !CH_DBG_ENABLE_TRACE
+/* When the trace feature is disabled this function is replaced by an empty
+ * macro.*/
+#define chDbgTrace(otp, ntp) {}
+#endif
+
#ifdef __cplusplus
extern "C" {
#endif
|