* Paranoia checks were accidentally globally enabled by default. Object
* cache paranoia was always enabled. * Changed from paranoia on/off to levels. Adjusted the macros to take a level argument. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25215 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
|
||||
// enable paranoia checks (0/1)
|
||||
#ifndef ENABLE_PARANOIA_CHECKS
|
||||
# define ENABLE_PARANOIA_CHECKS 1
|
||||
# define ENABLE_PARANOIA_CHECKS 0
|
||||
#endif
|
||||
|
||||
// number of check slots (should depend on the components for which checks
|
||||
@@ -12,9 +12,15 @@
|
||||
#define PARANOIA_SLOT_COUNT (32 * 1024)
|
||||
|
||||
|
||||
// macros that enable paranoia checks for individual components
|
||||
// macros that set the paranoia check level for individual components
|
||||
// levels:
|
||||
// * PARANOIA_NAIVE (checks disabled)
|
||||
// * PARANOIA_SUSPICIOUS
|
||||
// * PARANOIA_OBSESSIVE
|
||||
// * PARANOIA_INSANE
|
||||
|
||||
//#define NET_BUFFER_PARANOIA 1
|
||||
#define NET_BUFFER_PARANOIA PARANOIA_NAIVE
|
||||
#define OBJECT_CACHE_PARANOIA PARANOIA_NAIVE
|
||||
|
||||
|
||||
#endif // DEBUG_PARANOIA_CONFIG_H
|
||||
|
||||
Reference in New Issue
Block a user