Assert.cpp 347 B

123456789101112131415161718
  1. #include "os/Assert.h"
  2. #if IL2CPP_DEBUG
  3. #if IL2CPP_USE_GENERIC_ASSERT
  4. #include <cstdio>
  5. #include <cstdlib>
  6. void il2cpp_assert(const char* assertion, const char* file, unsigned int line)
  7. {
  8. printf("Assertion failed: %s, file %s, line %u\n", assertion, file, line);
  9. abort();
  10. }
  11. #endif // IL2CPP_USE_GENERIC_ASSERT
  12. #endif // IL2CPP_DEBUG