ErrorSimulator.cpp 335 B

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