1234567891011121314151617 |
- #include "ErrorSimulator.hpp"
- #ifdef ERROR_SIMULATOR
- #include "core/utils/Utility.hpp"
- bool Core::Fail::realloc = false;
- bool Core::Fail::fileClose = false;
- bool Core::Fail::timeGet = false;
- int Core::Fail::leftAllocations = -1;
- bool Core::Fail::freeAndReturn(void* p) {
- Core::free(p);
- return true;
- }
- #endif
|