ErrorSimulator.cpp 321 B

1234567891011121314151617
  1. #include "ErrorSimulator.hpp"
  2. #ifdef ERROR_SIMULATOR
  3. #include "core/utils/Utility.hpp"
  4. bool Core::Fail::realloc = false;
  5. bool Core::Fail::fileClose = false;
  6. bool Core::Fail::timeGet = false;
  7. int Core::Fail::leftAllocations = -1;
  8. bool Core::Fail::freeAndReturn(void* p) {
  9. Core::free(p);
  10. return true;
  11. }
  12. #endif