summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2010-11-19 12:00:05 +0000
committerCaolán McNamara <caolanm@redhat.com>2010-11-19 12:00:05 +0000
commit0221eeab345ee7510e6c11a9560ef7c88a3864a9 (patch)
tree9fae1f08dfec5504b193b7c4ebb04b2e7597065a
parent088f05ac5fce17a04f7f5142bffd04b895d59455 (diff)
extra ::
-rw-r--r--tools/inc/tools/diagnose_ex.h27
1 files changed, 15 insertions, 12 deletions
diff --git a/tools/inc/tools/diagnose_ex.h b/tools/inc/tools/diagnose_ex.h
index dde948572f3a..326f59ad8ed4 100644
--- a/tools/inc/tools/diagnose_ex.h
+++ b/tools/inc/tools/diagnose_ex.h
@@ -105,18 +105,21 @@
/** This macro asserts the given condition (in debug mode), and throws
an RuntimeException afterwards.
*/
-#define ENSURE_OR_THROW(c, m) if( !(c) ) { \
- OSL_ENSURE(c, m); \
- throw ::com::sun::star::uno::RuntimeException( \
- ::rtl::OUString::createFromAscii(BOOST_CURRENT_FUNCTION) + \
- ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ",\n"m )), \
- ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >() ); }
-#define ENSURE_OR_THROW2(c, m, ifc) if( !(c) ) { \
- OSL_ENSURE(c, m); \
- throw ::com::sun::star::uno::RuntimeException( \
- ::rtl::OUString::createFromAscii(BOOST_CURRENT_FUNCTION) + \
- ::rtl::OUString::( RTL_CONSTASCII_USTRINGPARAM( ",\n"m )), \
- ifc ); }
+#define ENSURE_OR_THROW(c, m) \
+ if( !(c) ){ \
+ OSL_ENSURE(c, m); \
+ throw ::com::sun::star::uno::RuntimeException( \
+ ::rtl::OUString::createFromAscii(BOOST_CURRENT_FUNCTION) + \
+ ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ",\n"m )), \
+ ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >() ); }
+
+#define ENSURE_OR_THROW2(c, m, ifc) \
+ if( !(c) ) { \
+ OSL_ENSURE(c, m); \
+ throw ::com::sun::star::uno::RuntimeException( \
+ ::rtl::OUString::createFromAscii(BOOST_CURRENT_FUNCTION) + \
+ ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ",\n"m )), \
+ ifc ); }
/** This macro asserts the given condition (in debug mode), and
returns the given value afterwards.