summaryrefslogtreecommitdiff
path: root/include/rtdebug.h
diff options
context:
space:
mode:
author[email protected] <[email protected]>2012-09-05 06:28:28 +0000
committer[email protected] <[email protected]>2012-09-05 06:28:28 +0000
commitf897cff83fd3c098cda4433488b1649ff3bd4e0e (patch)
treea51a2e6fc7c314c219a57be36efdf1e336bcd842 /include/rtdebug.h
parent96182b10c0c3dbaa904370285c19940b42826c4f (diff)
fixed a compiling error if RT_DEBUG is defined but RT_DEBUG_CONTEXT_CHECK is defined as 0
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2270 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'include/rtdebug.h')
-rw-r--r--include/rtdebug.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/rtdebug.h b/include/rtdebug.h
index abe7b3aa26..3cdc7625b4 100644
--- a/include/rtdebug.h
+++ b/include/rtdebug.h
@@ -73,7 +73,10 @@
rt_kprintf("Function[%s] shall not used in ISR\n", __FUNCTION__);\
RT_ASSERT(0)}\
rt_hw_interrupt_enable(level);} while (0)
+#else
+#define RT_DEBUG_NOT_IN_INTERRUPT
#endif
+
#else /* RT_DEBUG */
#define RT_ASSERT(EX)