UncaughtExceptionHandler.h 734 B

12345678910111213141516171819202122232425262728
  1. //
  2. // UncaughtExceptionHandler.h
  3. // UncaughtExceptions
  4. //
  5. // Created by Matt Gallagher on 2010/05/25.
  6. // Copyright 2010 Matt Gallagher. All rights reserved.
  7. //
  8. // Permission is given to use this source code file, free of charge, in any
  9. // project, commercial or otherwise, entirely at your risk, with the condition
  10. // that any redistribution (in part or whole) of source code must retain
  11. // this copyright and permission notice. Attribution in compiled projects is
  12. // appreciated but not required.
  13. //
  14. #import <UIKit/UIKit.h>
  15. @interface UncaughtExceptionHandler : NSObject
  16. {
  17. BOOL dismissed;
  18. }
  19. @end
  20. void HandleException(NSException *exception);
  21. void SignalHandler(int signal);
  22. void InstallUncaughtExceptionHandler(void);