[Libreoffice-commits] .: tools/inc
Caolán McNamara
caolan at kemper.freedesktop.org
Fri Nov 19 04:01:00 PST 2010
tools/inc/tools/diagnose_ex.h | 27 +++++++++++++++------------
1 file changed, 15 insertions(+), 12 deletions(-)
New commits:
commit dea820a9fe648562a3d89a2bb99280d925b4dab3
Author: Caolán McNamara <caolanm at redhat.com>
Date: Fri Nov 19 12:00:05 2010 +0000
extra ::
diff --git a/tools/inc/tools/diagnose_ex.h b/tools/inc/tools/diagnose_ex.h
index 8798d72..1069466 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.
More information about the Libreoffice-commits
mailing list