Changeset View
Changeset View
Standalone View
Standalone View
intern/guardedalloc/MEM_guardedalloc.h
| Show First 20 Lines • Show All 209 Lines • ▼ Show 20 Lines | |||||
| #ifndef NDEBUG | #ifndef NDEBUG | ||||
| extern const char *(*MEM_name_ptr)(void *vmemh); | extern const char *(*MEM_name_ptr)(void *vmemh); | ||||
| #endif | #endif | ||||
| /** This should be called as early as possible in the program. When it has been called, information | /** This should be called as early as possible in the program. When it has been called, information | ||||
| * about memory leaks will be printed on exit. */ | * about memory leaks will be printed on exit. */ | ||||
| void MEM_init_memleak_detection(void); | void MEM_init_memleak_detection(void); | ||||
| /** When this has been called and memory leaks have been detected, the process will have an exit | |||||
| * code that indicates failure. This can be used for when checking for memory leaks with automated | |||||
| * tests. */ | |||||
| void MEM_enable_fail_on_memleak(void); | |||||
| /* Switch allocator to slower but fully guarded mode. */ | /* Switch allocator to slower but fully guarded mode. */ | ||||
| void MEM_use_guarded_allocator(void); | void MEM_use_guarded_allocator(void); | ||||
| #ifdef __cplusplus | #ifdef __cplusplus | ||||
| } | } | ||||
| #endif /* __cplusplus */ | #endif /* __cplusplus */ | ||||
| #ifdef __cplusplus | #ifdef __cplusplus | ||||
| ▲ Show 20 Lines • Show All 64 Lines • Show Last 20 Lines | |||||