From 5211328a37de3afa4ef1a2018ee73142987d2dfe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Thu, 10 Nov 2005 13:38:22 +0000 Subject: [PATCH] turn off on-screen debugging for now, the errors it reported are not that critical, and printing the debug info itself could lead to problems git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14820 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/servers/app/DebugInfoManager.cpp | 5 ++++- src/servers/app/DebugInfoManager.h | 7 ++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/servers/app/DebugInfoManager.cpp b/src/servers/app/DebugInfoManager.cpp index 6b59b64493..e7b5ee539f 100644 --- a/src/servers/app/DebugInfoManager.cpp +++ b/src/servers/app/DebugInfoManager.cpp @@ -48,10 +48,13 @@ DebugInfoManager::AddInfo(const char* string) DebugInfoManager::DebugInfoManager() #if ON_SCREEN_DEBUGGING_INFO : fRootLayer(NULL) -#endif // ON_SCREEN_DEBUGGING_INFO { gDebugString[0] = 0; } +#else +{ +} +#endif // ON_SCREEN_DEBUGGING_INFO #if ON_SCREEN_DEBUGGING_INFO // SetRootLayer diff --git a/src/servers/app/DebugInfoManager.h b/src/servers/app/DebugInfoManager.h index 547718612e..eb4b4f7de9 100644 --- a/src/servers/app/DebugInfoManager.h +++ b/src/servers/app/DebugInfoManager.h @@ -13,16 +13,17 @@ #include #if __HAIKU__ -# define ON_SCREEN_DEBUGGING_INFO 1 +# define ON_SCREEN_DEBUGGING_INFO 0 #else -# define ON_SCREEN_DEBUGGING_INFO 1 +# define ON_SCREEN_DEBUGGING_INFO 0 #endif #if ON_SCREEN_DEBUGGING_INFO extern char* gDebugString; # define CRITICAL(x) { sprintf(gDebugString, (x)); DebugInfoManager::Default()->AddInfo(gDebugString); } #else -# define CRITICAL(x) debugger x +//# define CRITICAL(x) debugger (x) +# define CRITICAL(x) ; #endif // ON_SCREEN_DEBUGGING_INFO class DebugInfoManager {