From 11a2f378b1111e0d51e294fade2133c7563c359f Mon Sep 17 00:00:00 2001 From: Andre Fischer Date: Wed, 6 May 2009 08:16:59 +0000 Subject: #i48179# Improved/fixed debugging code. --- slideshow/source/inc/debug.hxx | 23 ++++++++--------------- 1 file changed, 8 insertions(+), 15 deletions(-) (limited to 'slideshow/source/inc/debug.hxx') 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 #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 -- cgit