git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/kernel_3_dev@6317 35acf78f-673a-0410-8e92-d51de3d6d3f4

This commit is contained in:
gdisirio 2013-09-24 13:00:46 +00:00
parent c0372b4344
commit 191a1672e2
2 changed files with 7 additions and 7 deletions

View File

@ -724,7 +724,7 @@ typedef struct {
* @details If the condition check fails then the kernel panics with a * @details If the condition check fails then the kernel panics with a
* message and halts. * message and halts.
* @note The condition is tested only if the @p NIL_CFG_ENABLE_ASSERTS * @note The condition is tested only if the @p NIL_CFG_ENABLE_ASSERTS
* switch is specified in @p chconf.h else the macro does nothing. * switch is specified in @p nilconf.h else the macro does nothing.
* @note The remark string is not currently used except for putting a * @note The remark string is not currently used except for putting a
* comment in the code about the assertion. * comment in the code about the assertion.
* *
@ -734,10 +734,10 @@ typedef struct {
* @api * @api
*/ */
#if !defined(chDbgAssert) #if !defined(chDbgAssert)
#define chDbgAssert(c, r) { \ #define chDbgAssert(c, r) do { \
if (NIL_CFG_ENABLE_ASSERTS && !(c)) \ if (NIL_CFG_ENABLE_ASSERTS && !(c)) \
chSysHalt(__func__); \ chSysHalt(__func__); \
} } while (0)
#endif /* !defined(chDbgAssert) */ #endif /* !defined(chDbgAssert) */
/** @} */ /** @} */

View File

@ -165,10 +165,10 @@ typedef struct {
* @api * @api
*/ */
#if !defined(chDbgCheck) #if !defined(chDbgCheck)
#define chDbgCheck(c) { \ #define chDbgCheck(c) do { \
if (CH_DBG_ENABLE_CHECKS && !(c)) \ if (CH_DBG_ENABLE_CHECKS && !(c)) \
chSysHalt(__func__); \ chSysHalt(__func__); \
} } while (0)
#endif /* !defined(chDbgCheck) */ #endif /* !defined(chDbgCheck) */
/** /**
@ -186,10 +186,10 @@ typedef struct {
* @api * @api
*/ */
#if !defined(chDbgAssert) #if !defined(chDbgAssert)
#define chDbgAssert(c, r) { \ #define chDbgAssert(c, r) do { \
if (CH_DBG_ENABLE_ASSERTS && !(c)) \ if (CH_DBG_ENABLE_ASSERTS && !(c)) \
chSysHalt(__func__); \ chSysHalt(__func__); \
} } while (0)
#endif /* !defined(chDbgAssert) */ #endif /* !defined(chDbgAssert) */
/** @} */ /** @} */