aboutsummaryrefslogtreecommitdiffstats
path: root/os/kernel/include
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2011-08-01 14:33:04 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2011-08-01 14:33:04 +0000
commit0c276798fd9ed7c2d91abd54d8fb2f3a20147130 (patch)
tree00450c301e003af550940c3e0d7b676cbb0207d0 /os/kernel/include
parentb077c0f2cc2da6ec873af595d5ca1a8135c11738 (diff)
downloadChibiOS-0c276798fd9ed7c2d91abd54d8fb2f3a20147130.tar.gz
ChibiOS-0c276798fd9ed7c2d91abd54d8fb2f3a20147130.tar.bz2
ChibiOS-0c276798fd9ed7c2d91abd54d8fb2f3a20147130.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3188 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/kernel/include')
-rw-r--r--os/kernel/include/chdebug.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/os/kernel/include/chdebug.h b/os/kernel/include/chdebug.h
index 2fb3b2385..b2edf176e 100644
--- a/os/kernel/include/chdebug.h
+++ b/os/kernel/include/chdebug.h
@@ -90,13 +90,15 @@ typedef struct {
*
* @api
*/
+#if !defined(chDbgCheck)
#define chDbgCheck(c, func) { \
if (!(c)) \
- chDbgPanic(__QUOTE_THIS(func)"(), line "__QUOTE_THIS(__LINE__)); \
+ chDbgPanic(__QUOTE_THIS(func)"()"); \
}
+#endif /* !defined(chDbgCheck) */
#else /* !CH_DBG_ENABLE_CHECKS */
#define chDbgCheck(c, func) { \
- (void)(c), (void)__QUOTE_THIS(func)"(), line "__QUOTE_THIS(__LINE__); \
+ (void)(c), (void)__QUOTE_THIS(func)"()"; \
}
#endif /* !CH_DBG_ENABLE_CHECKS */
@@ -118,10 +120,12 @@ typedef struct {
*
* @api
*/
+#if !defined(chDbgAssert)
#define chDbgAssert(c, m, r) { \
if (!(c)) \
chDbgPanic(m); \
}
+#endif /* !defined(chDbgAssert) */
#else /* !CH_DBG_ENABLE_ASSERTS */
#define chDbgAssert(c, m, r) {(void)(c);}
#endif /* !CH_DBG_ENABLE_ASSERTS */