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:
parent
0d660a960b
commit
5211328a37
@ -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
|
||||
|
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user