summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorFrank Schoenheit [fs] <frank.schoenheit@sun.com>2010-06-03 17:54:37 +0200
committerFrank Schoenheit [fs] <frank.schoenheit@sun.com>2010-06-03 17:54:37 +0200
commit80391167818510cac71e423c4a69850f8f638f92 (patch)
tree35ad9eaf96ee4a562db848669495f035bc71984f /tools
parent4d1c1eae73df67c115f532b7078deaf7caf4cde8 (diff)
parent9e2ed49397eda707bca5326d09ff58b10fa05147 (diff)
unoawt: merged in latest changes from CWS slidecopy (rebase to m80)
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".