summaryrefslogtreecommitdiff
path: root/tools/inc
diff options
context:
space:
mode:
authorFrank Schoenheit [fs] <frank.schoenheit@sun.com>2010-02-12 10:45:01 +0100
committerFrank Schoenheit [fs] <frank.schoenheit@sun.com>2010-02-12 10:45:01 +0100
commit4de89c5b78184fb74e5c907df3d911379fa018be (patch)
tree1b11c84f74115a2bcb91457af69e3ad907bf8d77 /tools/inc
parent7878b4f9db37a25be146c36438422ad1a2c9141f (diff)
autorecovery: +ENSURE_OR_RETURN_VOID
Diffstat (limited to 'tools/inc')
-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".