X-Git-Url: https://git.saurik.com/apple/objc4.git/blobdiff_plain/7257e56cc9570231fcb1a302702a85f51f9a9790..8070259c3936ee823b758fc1ad1645ae016ba500:/runtime/objc-api.h diff --git a/runtime/objc-api.h b/runtime/objc-api.h index 3779bab..fc36423 100644 --- a/runtime/objc-api.h +++ b/runtime/objc-api.h @@ -65,7 +65,11 @@ /* OBJC_ISA_AVAILABILITY: `isa` will be deprecated or unavailable * in the future */ #if !defined(OBJC_ISA_AVAILABILITY) -# define OBJC_ISA_AVAILABILITY /* still available */ +# if __OBJC2__ +# define OBJC_ISA_AVAILABILITY __attribute__((deprecated)) +# else +# define OBJC_ISA_AVAILABILITY /* still available */ +# endif #endif @@ -92,6 +96,17 @@ # endif #endif +#if !defined(OBJC_HIDE_64) +/* OBJC_ARM64_UNAVAILABLE: unavailable on arm64 (i.e. stret dispatch) */ +#if !defined(OBJC_ARM64_UNAVAILABLE) +# if defined(__arm64__) +# define OBJC_ARM64_UNAVAILABLE __attribute__((unavailable("not available in arm64"))) +# else +# define OBJC_ARM64_UNAVAILABLE +# endif +#endif +#endif + /* OBJC_GC_UNAVAILABLE: unavailable with -fobjc-gc or -fobjc-gc-only */ #if !defined(OBJC_GC_UNAVAILABLE) # if __OBJC_GC__