84 /** |
84 /** |
85 * Verifies that this allocator has been used. |
85 * Verifies that this allocator has been used. |
86 * |
86 * |
87 * @return true if any allocation was attempted using this allocator |
87 * @return true if any allocation was attempted using this allocator |
88 */ |
88 */ |
89 bool cx_testing_allocator_used(CxTestingAllocator const *alloc); |
89 bool cx_testing_allocator_used(const CxTestingAllocator *alloc); |
90 |
90 |
91 /** |
91 /** |
92 * Verifies that all allocated memory blocks are freed and no free occurred twice. |
92 * Verifies that all allocated memory blocks are freed and no free occurred twice. |
93 * |
93 * |
94 * @return true iff all tracked allocations / deallocations were valid |
94 * @return true iff all tracked allocations / deallocations were valid |
95 */ |
95 */ |
96 bool cx_testing_allocator_verify(CxTestingAllocator const *alloc); |
96 bool cx_testing_allocator_verify(const CxTestingAllocator *alloc); |
97 |
97 |
98 #ifdef __cplusplus |
98 #ifdef __cplusplus |
99 } // extern "C" |
99 } // extern "C" |
100 #endif |
100 #endif |
101 |
101 |