KiwiConfiguration.h 774 B

1234567891011121314151617181920
  1. //
  2. // Licensed under the terms in License.txt
  3. //
  4. // Copyright 2010 Allen Ding. All rights reserved.
  5. //
  6. #import <Foundation/Foundation.h>
  7. // As of iPhone SDK 4 GM, exceptions thrown across an NSInvocation -invoke or
  8. // forwardInvocation: boundary in the simulator will terminate the app instead
  9. // of being caught in @catch blocks from the caller side of the -invoke. Kiwi
  10. // tries to handle this by storing the first exception that it would have
  11. // otherwise thrown in a nasty global that callers can look for and handle.
  12. // (Buggy termination is less desirable than global variables).
  13. //
  14. // Obviously, this can only handles cases where Kiwi itself would have raised
  15. // an exception.
  16. #if TARGET_IPHONE_SIMULATOR
  17. #define KW_TARGET_HAS_INVOCATION_EXCEPTION_BUG 1
  18. #endif