screensaver/snsrdisplaycontrol_s60/inc/snsrdisplaycontrolcommon.h
changeset 97 66b5fe3c07fd
parent 86 e4f038c420f7
--- a/screensaver/snsrdisplaycontrol_s60/inc/snsrdisplaycontrolcommon.h	Mon Sep 27 11:52:00 2010 +0300
+++ b/screensaver/snsrdisplaycontrol_s60/inc/snsrdisplaycontrolcommon.h	Wed Oct 06 16:06:24 2010 +0300
@@ -20,6 +20,7 @@
 #define SNSRDISPLAYCONTROLCOMMON_H
 
 #include <e32def.h>
+#include <e32debug.h>
 
 
 _LIT( KSnsrDispCtrlSrvName, "SnsrDisplayControlServer" ); 
@@ -35,4 +36,12 @@
 const TInt KSnsrDispCtrlSrvVerMinor = 0;
 const TInt KSnsrDispCtrlSrvVerBuild = 0;
 
+#if defined(_DEBUG)
+#define RDEBUG( x ) RDebug::Printf( "%s %s (%u) %s", __FILE__, __PRETTY_FUNCTION__, __LINE__, x );
+#define RDEBUG1( x, y ) RDebug::Printf( "%s %s (%u) %s=%d", __FILE__, __PRETTY_FUNCTION__, __LINE__, x, y );
+#else
+#define RDEBUG( x )
+#define RDEBUG1( x, y )
+#endif
+
 #endif /* SNSRDISPLAYCONTROLCOMMON_H */