Brak opisu

AAGlobalMacro.h 2.4KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. //
  2. // AAGlobalMacro.h
  3. // AAChartKit
  4. //
  5. // Created by An An on 17/3/13.
  6. // Copyright © 2017年 An An. All rights reserved.
  7. //*************** ...... SOURCE CODE ...... ***************
  8. //***...................................................***
  9. //*** https://github.com/AAChartModel/AAChartKit ***
  10. //*** https://github.com/AAChartModel/AAChartKit-Swift ***
  11. //***...................................................***
  12. //*************** ...... SOURCE CODE ...... ***************
  13. /*
  14. * -------------------------------------------------------------------------------
  15. *
  16. * 🌕 🌖 🌗 🌘 ❀❀❀ WARM TIPS!!! ❀❀❀ 🌑 🌒 🌓 🌔
  17. *
  18. * Please contact me on GitHub,if there are any problems encountered in use.
  19. * GitHub Issues : https://github.com/AAChartModel/AAChartKit/issues
  20. * -------------------------------------------------------------------------------
  21. * And if you want to contribute for this project, please contact me as well
  22. * GitHub : https://github.com/AAChartModel
  23. * StackOverflow : https://stackoverflow.com/users/7842508/codeforu
  24. * JianShu : http://www.jianshu.com/u/f1e6753d4254
  25. * SegmentFault : https://segmentfault.com/u/huanghunbieguan
  26. *
  27. * -------------------------------------------------------------------------------
  28. */
  29. #ifndef AAGlobalMacro_h
  30. #define AAGlobalMacro_h
  31. #define AAObject(objectName) [[objectName alloc]init]
  32. #define AAPropStatementAndPropSetFuncStatement(propertyModifier,className, propertyPointerType, propertyName) \
  33. @property(nonatomic,propertyModifier)propertyPointerType propertyName; \
  34. - (className * (^) (propertyPointerType propertyName)) propertyName##Set;
  35. #define AAPropSetFuncImplementation(className, propertyPointerType, propertyName) \
  36. - (className * (^) (propertyPointerType propertyName))propertyName##Set{ \
  37. return ^(propertyPointerType propertyName) { \
  38. _##propertyName = propertyName; \
  39. return self; \
  40. }; \
  41. }
  42. #endif /* AAGlobalMacro_h */