@@ -44,10 +44,11 @@ @interface OFMethod: OFObject { SEL _selector; OFString *_name; const char *_typeEncoding; + OF_RESERVE_IVARS(4) } /*! * @brief The selector of the method. */ @@ -74,10 +75,11 @@ @interface OFProperty: OFObject { OFString *_name; unsigned int _attributes; OFString *_Nullable _getter, *_Nullable _setter, *_Nullable _iVar; + OF_RESERVE_IVARS(4) } /*! * @brief The name of the property. */ @@ -128,10 +130,11 @@ @interface OFInstanceVariable: OFObject { OFString *_name; const char *_typeEncoding; ptrdiff_t _offset; + OF_RESERVE_IVARS(4) } /*! * @brief The name of the instance variable. */ @@ -153,10 +156,11 @@ /*! * @class OFIntrospection OFIntrospection.h ObjFW/OFIntrospection.h * * @brief A class for introspecting classes. */ +OF_SUBCLASSING_RESTRICTED @interface OFIntrospection: OFObject { OFMutableArray OF_GENERIC(OFMethod *) *_classMethods; OFMutableArray OF_GENERIC(OFMethod *) *_instanceMethods; OFMutableArray OF_GENERIC(OFProperty *) *_properties;