[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdelibs/kdecore/io
From: David Faure <faure () kde ! org>
Date: 2010-11-06 1:56:38
Message-ID: 20101106015638.A2C58AC89B () svn ! kde ! org
[Download RAW message or body]
SVN commit 1193440 by dfaure:
Make Block itself fast when KDE_NO_DEBUG_OUTPUT is set.
M +15 -1 kdebug.h
--- trunk/KDE/kdelibs/kdecore/io/kdebug.h #1193439:1193440
@@ -321,6 +321,7 @@
# define kWarning while (false) kWarning
#endif
+#ifndef KDE_NO_DEBUG_OUTPUT
/**
* @class KDebug::Block
@@ -365,8 +366,21 @@
/**
* Convenience macro for making a standard KDebug::Block
*/
-#define KDEBUG_BLOCK KDebug::Block uniquelyNamedStackAllocatedStandardBlock(Q_FUNC_INFO);
+#define KDEBUG_BLOCK KDebug::Block _kDebugBlock(Q_FUNC_INFO);
+#else
+
+class KDECORE_EXPORT KDebug::Block
+{
+public:
+ Block(const char*, int = KDE_DEFAULT_DEBUG_AREA) {}
+ ~Block() {}
+};
+
+#define KDEBUG_BLOCK
+
+#endif
+
/**
* Convenience macro, use this to remind yourself to finish the implementation of a function
* The function name will appear in the output (unless $KDE_DEBUG_NOMETHODNAME is set)
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic