summaryrefslogtreecommitdiff
path: root/slideshow/source/inc/debug.hxx
diff options
context:
space:
mode:
authorAndre Fischer <af@openoffice.org>2009-05-06 08:16:59 +0000
committerAndre Fischer <af@openoffice.org>2009-05-06 08:16:59 +0000
commit11a2f378b1111e0d51e294fade2133c7563c359f (patch)
tree063aee5c68ae8fb7296e3727b30cee55f030a02f /slideshow/source/inc/debug.hxx
parent69a4a545a556bd189736b3e510d4b4b07ae8cb6e (diff)
#i48179# Improved/fixed debugging code.
Diffstat (limited to 'slideshow/source/inc/debug.hxx')
-rw-r--r--slideshow/source/inc/debug.hxx23
1 files changed, 8 insertions, 15 deletions
diff --git a/slideshow/source/inc/debug.hxx b/slideshow/source/inc/debug.hxx
index e9c501ca58aa..53c031231370 100644
--- a/slideshow/source/inc/debug.hxx
+++ b/slideshow/source/inc/debug.hxx
@@ -31,22 +31,16 @@
#ifndef INCLUDED_SLIDESHOW_DEBUG_HXX
#define INCLUDED_SLIDESHOW_DEBUG_HXX
-#include "animationnode.hxx"
-
-namespace slideshow { namespace internal {
+#include <osl/diagnose.h>
#if OSL_DEBUG_LEVEL > 1
-void Debug_ShowNodeTree (const AnimationNodeSharedPtr& rpNode);
-#endif
-// Uncomment the following line to define
-// SLIDESHOW_ADD_DESCRIPTIONS_TO_EVENTS
-// in order to add descriptions to Event objects that help debugging event
-// base problems.
-#define SLIDESHOW_ADD_DESCRIPTIONS_TO_EVENTS
+#include "animationnode.hxx"
-#if OSL_DEBUG_LEVEL > 1
+namespace slideshow { namespace internal {
+
+void Debug_ShowNodeTree (const AnimationNodeSharedPtr& rpNode);
// Change this to a valid filename. The file is created anew with every
// office start (and execution of at least one TRACE... command.)
@@ -66,6 +60,9 @@ void SAL_CALL DebugTraceBegin (const sal_Char* sFormat, ...);
void SAL_CALL DebugTraceEnd (const sal_Char* sFormat, ...);
void SAL_CALL DebugTraceMessage (const sal_Char* sFormat, ...);
+} } // end of namespace ::slideshow::internal
+
+
#define TRACE_BEGIN DebugTraceBegin
#define TRACE_END DebugTraceEnd
#define TRACE DebugTraceMessage
@@ -80,8 +77,4 @@ void SAL_CALL DebugTraceMessage (const sal_Char* sFormat, ...);
#endif // OSL_DEBUG_LEVEL > 1
-
-} }
-
-
#endif