~vkolesnikov/pbxt/pbxt-preload-test-bug

« back to all changes in this revision

Viewing changes to src/memory_xt.h

  • Committer: Vladimir Kolesnikov
  • Date: 2009-05-27 14:42:16 UTC
  • mto: This revision was merged to the branch mainline in revision 652.
  • Revision ID: vladimir@primebase.org-20090527144216-5c0yzpn1udm9pf18
added DEBUG_MEMORY macro to control memory debugging

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
struct XTThread;
31
31
 
32
32
#ifdef DEBUG
 
33
#define DEBUG_MEMORY
 
34
#endif
 
35
 
 
36
#ifdef DEBUG_MEMORY
33
37
 
34
38
#define XT_MM_STACK_TRACE       200
35
39
#define XT_MM_TRACE_DEPTH       4
109
113
 
110
114
#endif
111
115
 
112
 
#ifdef DEBUG
 
116
#ifdef DEBUG_MEMORY
113
117
#define xt_dup_string(t, s)             xt_mm_dup_string(t, s, __LINE__, __FILE__)
114
118
 
115
119
char    *xt_mm_dup_string(struct XTThread *self, const char *path, u_int line, const char *file);