QNDefine.h 426 B

123456789101112131415
  1. //
  2. // QNDefine.h
  3. // QiniuSDK
  4. //
  5. // Created by yangsen on 2020/9/4.
  6. // Copyright © 2020 Qiniu. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #define kQNWeakSelf __weak typeof(self) weak_self = self
  10. #define kQNStrongSelf __strong typeof(self) self = weak_self
  11. #define kQNWeakObj(object) __weak typeof(object) weak_##object = object
  12. #define kQNStrongObj(object) __strong typeof(object) object = weak_##object