18 #ifndef LIBCWD_PRIVATE_SET_ALLOC_CHECKING_H
19 #define LIBCWD_PRIVATE_SET_ALLOC_CHECKING_H
21 #ifndef LIBCWD_CONFIG_H
24 #ifndef LIBCWD_PRIVATE_STRUCT_TSD_H
33 extern void set_alloc_checking_off(LIBCWD_TSD_PARAM);
34 extern void set_alloc_checking_on(LIBCWD_TSD_PARAM);
35 extern int set_library_call_on(LIBCWD_TSD_PARAM);
36 extern void set_library_call_off(
int saved_internal LIBCWD_COMMA_TSD_PARAM);
38 inline void set_alloc_checking_off(LIBCWD_TSD_PARAM) { ++__libcwd_tsd.internal; }
39 inline void set_alloc_checking_on(LIBCWD_TSD_PARAM) { --__libcwd_tsd.internal; }
40 inline int set_library_call_on(LIBCWD_TSD_PARAM)
42 int internal_saved = __libcwd_tsd.internal;
43 __libcwd_tsd.internal = 0;
44 ++__libcwd_tsd.library_call;
45 return internal_saved;
47 inline void set_library_call_off(
int saved_internal LIBCWD_COMMA_TSD_PARAM)
49 __libcwd_tsd.internal = saved_internal;
50 --__libcwd_tsd.library_call;
55 #else // !CWDEBUG_ALLOC
56 inline void set_alloc_checking_off(LIBCWD_TSD_PARAM_UNUSED) { }
57 inline void set_alloc_checking_on(LIBCWD_TSD_PARAM_UNUSED) { }
58 inline int set_library_call_on(LIBCWD_TSD_PARAM_UNUSED) {
return 0; }
59 inline void set_library_call_off(
int LIBCWD_COMMA_TSD_PARAM_UNUSED) { }
62 #endif // !CWDEBUG_ALLOC
67 #endif // LIBCWD_PRIVATE_SET_ALLOC_CHECKING_H
void set_invisible_on(void)
Make all future allocations invisible.All following allocations are made invisible; they won't show u...
Definition: debugmalloc.h:127
void set_invisible_off(void)
Cancel a call to set_invisible_on.See set_invisible_on.
Definition: debugmalloc.h:134