git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4391 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
parent
ec9736a27d
commit
21fa4d3249
|
@ -153,15 +153,15 @@ extern ch_trace_buffer_t dbg_trace_buffer;
|
||||||
* @api
|
* @api
|
||||||
*/
|
*/
|
||||||
#if !defined(chDbgCheck)
|
#if !defined(chDbgCheck)
|
||||||
#define chDbgCheck(c, func) { \
|
#define chDbgCheck(c, func) { \
|
||||||
if (!(c)) \
|
if (!(c)) \
|
||||||
chDbgPanic(__QUOTE_THIS(func)"()"); \
|
chDbgPanic(__QUOTE_THIS(func)"()"); \
|
||||||
}
|
}
|
||||||
#endif /* !defined(chDbgCheck) */
|
#endif /* !defined(chDbgCheck) */
|
||||||
/** @} */
|
/** @} */
|
||||||
#else /* !CH_DBG_ENABLE_CHECKS */
|
#else /* !CH_DBG_ENABLE_CHECKS */
|
||||||
#define chDbgCheck(c, func) { \
|
#define chDbgCheck(c, func) { \
|
||||||
(void)(c), (void)__QUOTE_THIS(func)"()"; \
|
(void)(c), (void)__QUOTE_THIS(func)"()"; \
|
||||||
}
|
}
|
||||||
#endif /* !CH_DBG_ENABLE_CHECKS */
|
#endif /* !CH_DBG_ENABLE_CHECKS */
|
||||||
|
|
||||||
|
@ -192,9 +192,9 @@ extern ch_trace_buffer_t dbg_trace_buffer;
|
||||||
* @api
|
* @api
|
||||||
*/
|
*/
|
||||||
#if !defined(chDbgAssert)
|
#if !defined(chDbgAssert)
|
||||||
#define chDbgAssert(c, m, r) { \
|
#define chDbgAssert(c, m, r) { \
|
||||||
if (!(c)) \
|
if (!(c)) \
|
||||||
chDbgPanic(m); \
|
chDbgPanic(m); \
|
||||||
}
|
}
|
||||||
#endif /* !defined(chDbgAssert) */
|
#endif /* !defined(chDbgAssert) */
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
Loading…
Reference in New Issue