提交 c1cc1332 编写于 作者: mysterywolf's avatar mysterywolf

[debug] fix the error when disable RT_USING_DEBUG

上级 9cffb706
......@@ -717,6 +717,9 @@ if (!(EX)) \
{ \
rt_assert_handler(#EX, __FUNCTION__, __LINE__); \
}
#else
#define RT_ASSERT(EX)
#endif /* RT_USING_DEBUG */
#ifdef RT_DEBUGING_CONTEXT
/* Macro to check current context */
......@@ -791,9 +794,6 @@ while (0)
#define RT_DEBUG_IN_THREAD_CONTEXT
#define RT_DEBUG_SCHEDULER_AVAILABLE(need_check)
#endif /* RT_DEBUGING_CONTEXT */
#else
#define RT_ASSERT(EX)
#endif /* RT_USING_DEBUG */
/**@}*/
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册