| #ifdef TESTING | |
| #include "rive/simple_array.hpp" | |
| namespace rive | |
| { | |
| namespace SimpleArrayTesting | |
| { | |
| std::atomic<int> mallocCount{0}; | |
| std::atomic<int> reallocCount{0}; | |
| std::atomic<int> freeCount{0}; | |
| void resetCounters() | |
| { | |
| mallocCount = 0; | |
| reallocCount = 0; | |
| freeCount = 0; | |
| } | |
| } // namespace SimpleArrayTesting | |
| } // namespace rive | |
| #endif |