Added paranoia checks debug facility. It helps checking that data in

memory haven't changed behind one's back.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25193 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold
2008-04-26 20:25:02 +00:00
parent 34c28c694b
commit dfa611bb04
5 changed files with 554 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
#ifndef DEBUG_PARANOIA_CONFIG_H
#define DEBUG_PARANOIA_CONFIG_H
// enable paranoia checks (0/1)
#ifndef ENABLE_PARANOIA_CHECKS
# define ENABLE_PARANOIA_CHECKS 1
#endif
// number of check slots (should depend on the components for which checks
// are enabled)
#define PARANOIA_SLOT_COUNT 1024
// macros that enable paranoia checks for individual components
//#define NET_BUFFER_PARANOIA 1
#endif // DEBUG_PARANOIA_CONFIG_H