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
This commit is contained in:
Stephan Aßmus 2005-11-10 13:38:22 +00:00
parent 0d660a960b
commit 5211328a37
2 changed files with 8 additions and 4 deletions

View File

@ -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

View File

@ -13,16 +13,17 @@
#include <OS.h>
#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 {