111 |
111 |
112 struct cx_allocator_s cx_testing_allocator = { |
112 struct cx_allocator_s cx_testing_allocator = { |
113 &cx_testing_allocator_class, |
113 &cx_testing_allocator_class, |
114 &cx_testing_allocator_data |
114 &cx_testing_allocator_data |
115 }; |
115 }; |
116 CxAllocator cxTestingAllocator = &cx_testing_allocator; |
116 CxAllocator *cxTestingAllocator = &cx_testing_allocator; |
117 |
117 |
118 void cxTestingAllocatorReset(void) { |
118 void cxTestingAllocatorReset(void) { |
119 memset(&cx_testing_allocator_data, 0, sizeof(cx_testing_allocator_s)); |
119 memset(&cx_testing_allocator_data, 0, sizeof(cx_testing_allocator_s)); |
120 } |
120 } |
121 |
121 |