aboutsummaryrefslogtreecommitdiffstats
path: root/os/rt/include/chdebug.h
diff options
context:
space:
mode:
Diffstat (limited to 'os/rt/include/chdebug.h')
-rw-r--r--os/rt/include/chdebug.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/os/rt/include/chdebug.h b/os/rt/include/chdebug.h
index 91ca172a9..728d9bf35 100644
--- a/os/rt/include/chdebug.h
+++ b/os/rt/include/chdebug.h
@@ -165,8 +165,9 @@ typedef struct {
*/
#if !defined(chDbgCheck)
#define chDbgCheck(c) do { \
- if (CH_DBG_ENABLE_CHECKS && !(c)) \
+ if (CH_DBG_ENABLE_CHECKS && !(c)) { \
chSysHalt(__func__); \
+ } \
} while (0)
#endif /* !defined(chDbgCheck) */
@@ -186,8 +187,9 @@ typedef struct {
*/
#if !defined(chDbgAssert)
#define chDbgAssert(c, r) do { \
- if (CH_DBG_ENABLE_ASSERTS && !(c)) \
+ if (CH_DBG_ENABLE_ASSERTS && !(c)) { \
chSysHalt(__func__); \
+ } \
} while (0)
#endif /* !defined(chDbgAssert) */
/** @} */