CrashReporter.h 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. #pragma once
  2. // Enabling this will force app to do a hard crash instead of a nice exit when UnhandledException
  3. // is thrown. This will force iOS to generate a standard crash report, that can be submitted to
  4. // iTunes by app users and inspected by developers.
  5. #define ENABLE_IOS_CRASH_REPORTING 1
  6. // Enabling this will add a custom Objective-C Uncaught Exception handler, which will print out
  7. // exception information to console.
  8. #define ENABLE_OBJC_UNCAUGHT_EXCEPTION_HANDLER 1
  9. // Enable custom crash reporter to capture crashes. Crash logs will be available to scripts via
  10. // CrashReport API.
  11. #define ENABLE_CUSTOM_CRASH_REPORTER 0
  12. // Enable submission of custom crash reports to Unity servers. This will enable custom crash
  13. // reporter.
  14. #define ENABLE_CRASH_REPORT_SUBMISSION 0
  15. #if ENABLE_CRASH_REPORT_SUBMISSION && !ENABLE_CUSTOM_CRASH_REPORTER
  16. #undef ENABLE_CUSTOM_CRASH_REPORTER
  17. #define ENABLE_CUSTOM_CRASH_REPORTER 0
  18. #endif
  19. #if PLATFORM_TVOS
  20. #undef ENABLE_CUSTOM_CRASH_REPORTER
  21. #define ENABLE_CUSTOM_CRASH_REPORTER 0
  22. #endif
  23. extern "C" void UnityInstallPostCrashCallback();
  24. void InitCrashHandling();