Kaydet (Commit) ba961371 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Minor simplification

Change-Id: I8425971ed81b4f13be5e295a5a5b9ef443b9a4db
üst ea2f06d7
......@@ -19,22 +19,17 @@
#ifndef CHART_MACROS_HXX
#define CHART_MACROS_HXX
#include "sal/config.h"
#include <typeinfo>
/** shows an error-box for an exception ex
else-branch necessary to avoid warning
*/
#if OSL_DEBUG_LEVEL > 0
#include "sal/log.hxx"
#define ASSERT_EXCEPTION(ex) \
SAL_WARN("chart2", "Exception caught. Type: " <<\
typeid( ex ).name() << ", Message: " << \
ex.Message )
#else
//avoid compilation warnings
#define ASSERT_EXCEPTION(ex) (void)(ex)
#endif
// CHART_MACROS_HXX
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment