git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/kernel_3_dev@6317 35acf78f-673a-0410-8e92-d51de3d6d3f4
parent
c0372b4344
commit
191a1672e2
|
@ -724,7 +724,7 @@ typedef struct {
|
|||
* @details If the condition check fails then the kernel panics with a
|
||||
* message and halts.
|
||||
* @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
|
||||
* comment in the code about the assertion.
|
||||
*
|
||||
|
@ -734,10 +734,10 @@ typedef struct {
|
|||
* @api
|
||||
*/
|
||||
#if !defined(chDbgAssert)
|
||||
#define chDbgAssert(c, r) { \
|
||||
#define chDbgAssert(c, r) do { \
|
||||
if (NIL_CFG_ENABLE_ASSERTS && !(c)) \
|
||||
chSysHalt(__func__); \
|
||||
}
|
||||
} while (0)
|
||||
#endif /* !defined(chDbgAssert) */
|
||||
/** @} */
|
||||
|
||||
|
|
|
@ -165,10 +165,10 @@ typedef struct {
|
|||
* @api
|
||||
*/
|
||||
#if !defined(chDbgCheck)
|
||||
#define chDbgCheck(c) { \
|
||||
#define chDbgCheck(c) do { \
|
||||
if (CH_DBG_ENABLE_CHECKS && !(c)) \
|
||||
chSysHalt(__func__); \
|
||||
}
|
||||
} while (0)
|
||||
#endif /* !defined(chDbgCheck) */
|
||||
|
||||
/**
|
||||
|
@ -186,10 +186,10 @@ typedef struct {
|
|||
* @api
|
||||
*/
|
||||
#if !defined(chDbgAssert)
|
||||
#define chDbgAssert(c, r) { \
|
||||
#define chDbgAssert(c, r) do { \
|
||||
if (CH_DBG_ENABLE_ASSERTS && !(c)) \
|
||||
chSysHalt(__func__); \
|
||||
}
|
||||
} while (0)
|
||||
#endif /* !defined(chDbgAssert) */
|
||||
/** @} */
|
||||
|
||||
|
|
Loading…
Reference in New Issue