You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (![theClass hpn_swizzle:@selector(theSelector) with:(IMP)IMPFuncName store:(IMPPointer)&IMPPointerName]) \
141
-
[NSExceptionraise:@"Cannot swizzle a method"format:@"Tried to swizzle \""FRZS(theSelector)"\" in class \""FRZS(theClass)"\" with my version, but it failed."]; \
142
-
if (IMPPointerName == NULL) [NSExceptionraise:@"Swizzled a method, but original function pointer is NULL"format:@"Swizzled \""FRZS(theSelector)"\", but "FRZS(IMPPointerName)" is NULL."]
if (![theClass fsz_swizzle:@selector(theSelector) with:(IMP)IMPFuncName store:(IMPPointer)&IMPPointerName]) \
141
+
[NSExceptionraise:@"Cannot swizzle a method"format:@"Tried to swizzle \""FSZ_S(theSelector)"\" in class \""FSZ_S(theClass)"\" with my version, but it failed."]; \
142
+
if (IMPPointerName == NULL) [NSExceptionraise:@"Swizzled a method, but original function pointer is NULL"format:@"Swizzled \""FSZ_S(theSelector)"\", but "FSZ_S(IMPPointerName)" is NULL."]
if (![theClass hpn_swizzleOrAdd:@selector(theSelector) with:(IMP)IMPFuncName store:(IMPPointer)&IMPPointerName typesSelector:@selector(backupSelector)]) \
146
-
[NSExceptionraise:@"Cannot swizzle or add a method"format:@"Tried to swizzle or add \""FRZS(theSelector)"\" in class \""FRZS(theClass)"\", but it failed."]
if (![theClass fsz_swizzleOrAdd:@selector(theSelector) with:(IMP)IMPFuncName store:(IMPPointer)&IMPPointerName typesSelector:@selector(backupSelector)]) \
146
+
[NSExceptionraise:@"Cannot swizzle or add a method"format:@"Tried to swizzle or add \""FSZ_S(theSelector)"\" in class \""FSZ_S(theClass)"\", but it failed."]
if (![theClass hpn_addOnlyIfNotExist:@selector(theSelector) with:(IMP)IMPFuncName typesSelector:@selector(theTypesSelector)]) \
150
-
[NSExceptionraise:@"Cannot add method only if not exist"format:@"Tried to add \""FRZS(theSelector)"\" only if does not exist in class \""FRZS(theClass)"\", but it failed. Maybe it does exist?"]
if (![theClass fsz_addOnlyIfNotExist:@selector(theSelector) with:(IMP)IMPFuncName typesSelector:@selector(theTypesSelector)]) \
150
+
[NSExceptionraise:@"Cannot add method only if not exist"format:@"Tried to add \""FSZ_S(theSelector)"\" only if does not exist in class \""FSZ_S(theClass)"\", but it failed. Maybe it does exist?"]
0 commit comments