aboutsummaryrefslogtreecommitdiffstats
path: root/os/rt/include
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2013-09-24 13:00:46 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2013-09-24 13:00:46 +0000
commit191a1672e2f44f9d28d0bbf9d56ed4a22efec0a1 (patch)
tree912ade105a987295537b9166372e1b461f4aac73 /os/rt/include
parentc0372b43443df18547157d289542db47bdd9599c (diff)
downloadChibiOS-191a1672e2f44f9d28d0bbf9d56ed4a22efec0a1.tar.gz
ChibiOS-191a1672e2f44f9d28d0bbf9d56ed4a22efec0a1.tar.bz2
ChibiOS-191a1672e2f44f9d28d0bbf9d56ed4a22efec0a1.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/kernel_3_dev@6317 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/rt/include')
-rw-r--r--os/rt/include/chdebug.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/os/rt/include/chdebug.h b/os/rt/include/chdebug.h
index 98cb24e37..6ae948bc3 100644
--- a/os/rt/include/chdebug.h
+++ b/os/rt/include/chdebug.h
@@ -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) */
/** @} */