AvoidCrashStubProxy.h 1018 B

12345678910111213141516171819202122232425262728293031323334353637
  1. //
  2. // AvoidCrashStubProxy.h
  3. // https://github.com/chenfanfang/AvoidCrash
  4. //
  5. // Created by chenfanfang on 2017/7/25.
  6. // Copyright © 2017年 chenfanfang. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #define AvoidCrashNotification @"AvoidCrashNotification"
  10. #define AvoidCrashIsiOS(version) ([[UIDevice currentDevice].systemVersion floatValue] >= version)
  11. //user can ignore below define
  12. #define AvoidCrashDefaultReturnNil @"AvoidCrash default is to return nil to avoid crash."
  13. #define AvoidCrashDefaultIgnore @"AvoidCrash default is to ignore this operation to avoid crash."
  14. #define AvoidCrashSeparator @"================================================================"
  15. #define AvoidCrashSeparatorWithFlag @"========================AvoidCrash Log=========================="
  16. #ifdef DEBUG
  17. #define AvoidCrashLog(...) NSLog(@"%@",[NSString stringWithFormat:__VA_ARGS__])
  18. #else
  19. #define AvoidCrashLog(...)
  20. #endif
  21. @interface AvoidCrashStubProxy : NSObject
  22. - (void)proxyMethod;
  23. @end