aboutsummaryrefslogtreecommitdiffstats
path: root/os/rt/include/chdebug.h
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2015-03-03 11:01:09 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2015-03-03 11:01:09 +0000
commitfbd65c1f6ae3c802467ab99f4b2fe9c7c084972e (patch)
treecafc124edd19ce4f3b676a9de703f7a0aefed409 /os/rt/include/chdebug.h
parent3d1a86e9fb0b9495a726dab534e97c063b5f368b (diff)
downloadChibiOS-fbd65c1f6ae3c802467ab99f4b2fe9c7c084972e.tar.gz
ChibiOS-fbd65c1f6ae3c802467ab99f4b2fe9c7c084972e.tar.bz2
ChibiOS-fbd65c1f6ae3c802467ab99f4b2fe9c7c084972e.zip
MISRA-related fixes.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7711 35acf78f-673a-0410-8e92-d51de3d6d3f4
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) */
/** @} */