mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-12-26 01:07:21 +00:00
Add reentrance check. Put kernel debug switch together.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1494 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user