summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorobo <obo@openoffice.org>2010-06-15 10:58:34 +0200
committerobo <obo@openoffice.org>2010-06-15 10:58:34 +0200
commitd4741b8cb17b32ed902e60024649d6273e99f617 (patch)
tree0ab385d98ed9ebe8c5a81e975f3a983fdae8a937 /tools
parent11ca51711d56f1606f0b113bef4811b4d20d4128 (diff)
parentef60d406e368f024bd2edaa12e3389cbdd9e361b (diff)
CWS-TOOLING: integrate CWS unoawt
Diffstat (limited to 'tools')
-rw-r--r--tools/inc/tools/diagnose_ex.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/tools/inc/tools/diagnose_ex.h b/tools/inc/tools/diagnose_ex.h
index 6833fd6632ce..b244d11dc305 100644
--- a/tools/inc/tools/diagnose_ex.h
+++ b/tools/inc/tools/diagnose_ex.h
@@ -130,6 +130,17 @@
#define ENSURE_OR_RETURN_FALSE(c, m) \
ENSURE_OR_RETURN(c, m, false)
+/** This macro asserts the given condition (in debug mode), and
+ returns afterwards, without return value "void".
+ */
+#define ENSURE_OR_RETURN_VOID( c, m ) \
+ if( !(c) ) \
+ { \
+ OSL_ENSURE( c, m ); \
+ return; \
+ }
+
+
/** This macro asserts the given condition (in debug mode), and
returns afterwards, without return value "void".