1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- #if defined(__has_feature) && __has_feature(objc_arc)
- #error "ARC manages properties, so base::mac::ReleaseProperties isn't needed."
- #endif
- #ifndef BASE_MAC_OBJC_RELEASE_PROPERTIES_H_
- #define BASE_MAC_OBJC_RELEASE_PROPERTIES_H_
- #import <Foundation/Foundation.h>
- #include "base/base_export.h"
- namespace base {
- namespace mac {
- namespace details {
- BASE_EXPORT void ReleaseProperties(id, Class);
- }
- template <typename Self>
- void ReleaseProperties(Self* self) {
- details::ReleaseProperties(self, [Self class]);
- }
- }
- }
- #endif
|