this repo has no description
at fixPythonPipStalling 34 lines 744 B view raw
1#include <stdio.h> 2#import <Foundation/NSObject.h> 3#import <objc/runtime.h> 4 5@interface helloclass : NSObject { 6 @private int varName; 7} 8@property (readwrite,assign) int propName; 9@end 10 11@implementation helloclass 12@synthesize propName = varName; 13@end 14 15int main() 16{ 17 unsigned int outCount, i; 18 objc_property_t *properties = class_copyPropertyList([helloclass class], &outCount); 19 printf("%u properties\n", outCount); 20 for(i = 0; i < outCount; i++) 21 { 22 objc_property_t property = properties[i]; 23 printf("%s %s\n", property_getName(property), property_getAttributes(property)); 24 } 25 free(properties); 26 27 Method* methods = class_copyMethodList([helloclass class], &outCount); 28 printf("%u methods\n", outCount); 29 free(methods); 30 31 return 0; 32} 33 34