diff options
| author | [email protected] <[email protected]> | 2011-06-12 10:01:48 +0000 |
|---|---|---|
| committer | [email protected] <[email protected]> | 2011-06-12 10:01:48 +0000 |
| commit | 864bd1180237c952beefda21266c3f76f288b99a (patch) | |
| tree | 0d437761b4efee23c50b0a6e88e6a664fd55b2cf /include/rtdef.h | |
| parent | 8c3d1e5eaec88d77a2fe623e9d478b9542bad040 (diff) | |
Add reentrance check. Put kernel debug switch together.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1494 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'include/rtdef.h')
| -rw-r--r-- | include/rtdef.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/include/rtdef.h b/include/rtdef.h index f5d1449d45..50a02c56a3 100644 --- a/include/rtdef.h +++ b/include/rtdef.h @@ -149,12 +149,6 @@ typedef rt_base_t rt_off_t; /**< Type for offset */ #define RT_EBUSY 7 /**< Busy */ /*@}*/ -#ifdef RT_DEBUG -#define RT_ASSERT(EX) if (!(EX)) {volatile char dummy=0; rt_kprintf("(%s) assert failed at %s:%d \n", \ - #EX, __FUNCTION__, __LINE__); while (dummy==0);} -#else -#define RT_ASSERT(EX) -#endif /** * @ingroup BasicDef |
