| | |
| | | * @param __originalIMP The original IMP. |
| | | */ |
| | | #define GUL_INVOKE_ORIGINAL_IMP0(__receivingObject, __swizzledSEL, __returnType, __originalIMP) \ |
| | | ((__returnType(*)(id, SEL))__originalIMP)(__receivingObject, __swizzledSEL) |
| | | ((__returnType (*)(id, SEL))__originalIMP)(__receivingObject, __swizzledSEL) |
| | | |
| | | /** |
| | | * Invokes original IMP when the original selector takes 1 argument. |
| | |
| | | * @param __originalIMP The original IMP. |
| | | * @param __arg1 The first argument. |
| | | */ |
| | | #define GUL_INVOKE_ORIGINAL_IMP1(__receivingObject, __swizzledSEL, __returnType, __originalIMP, \ |
| | | __arg1) \ |
| | | ((__returnType(*)(id, SEL, __typeof__(__arg1)))__originalIMP)(__receivingObject, __swizzledSEL, \ |
| | | __arg1) |
| | | #define GUL_INVOKE_ORIGINAL_IMP1(__receivingObject, __swizzledSEL, __returnType, __originalIMP, \ |
| | | __arg1) \ |
| | | ((__returnType (*)(id, SEL, __typeof__(__arg1)))__originalIMP)(__receivingObject, __swizzledSEL, \ |
| | | __arg1) |
| | | |
| | | /** |
| | | * Invokes original IMP when the original selector takes 2 arguments. |
| | |
| | | */ |
| | | #define GUL_INVOKE_ORIGINAL_IMP2(__receivingObject, __swizzledSEL, __returnType, __originalIMP, \ |
| | | __arg1, __arg2) \ |
| | | ((__returnType(*)(id, SEL, __typeof__(__arg1), __typeof__(__arg2)))__originalIMP)( \ |
| | | ((__returnType (*)(id, SEL, __typeof__(__arg1), __typeof__(__arg2)))__originalIMP)( \ |
| | | __receivingObject, __swizzledSEL, __arg1, __arg2) |
| | | |
| | | /** |
| | |
| | | * @param __arg2 The second argument. |
| | | * @param __arg3 The third argument. |
| | | */ |
| | | #define GUL_INVOKE_ORIGINAL_IMP3(__receivingObject, __swizzledSEL, __returnType, __originalIMP, \ |
| | | __arg1, __arg2, __arg3) \ |
| | | ((__returnType(*)(id, SEL, __typeof__(__arg1), __typeof__(__arg2), \ |
| | | __typeof__(__arg3)))__originalIMP)(__receivingObject, __swizzledSEL, __arg1, \ |
| | | __arg2, __arg3) |
| | | #define GUL_INVOKE_ORIGINAL_IMP3(__receivingObject, __swizzledSEL, __returnType, __originalIMP, \ |
| | | __arg1, __arg2, __arg3) \ |
| | | ((__returnType (*)(id, SEL, __typeof__(__arg1), __typeof__(__arg2), \ |
| | | __typeof__(__arg3)))__originalIMP)(__receivingObject, __swizzledSEL, __arg1, \ |
| | | __arg2, __arg3) |
| | | |
| | | /** |
| | | * Invokes original IMP when the original selector takes 4 arguments. |
| | |
| | | * @param __arg3 The third argument. |
| | | * @param __arg4 The fourth argument. |
| | | */ |
| | | #define GUL_INVOKE_ORIGINAL_IMP4(__receivingObject, __swizzledSEL, __returnType, __originalIMP, \ |
| | | __arg1, __arg2, __arg3, __arg4) \ |
| | | ((__returnType(*)(id, SEL, __typeof__(__arg1), __typeof__(__arg2), __typeof__(__arg3), \ |
| | | __typeof__(__arg4)))__originalIMP)(__receivingObject, __swizzledSEL, __arg1, \ |
| | | __arg2, __arg3, __arg4) |
| | | #define GUL_INVOKE_ORIGINAL_IMP4(__receivingObject, __swizzledSEL, __returnType, __originalIMP, \ |
| | | __arg1, __arg2, __arg3, __arg4) \ |
| | | ((__returnType (*)(id, SEL, __typeof__(__arg1), __typeof__(__arg2), __typeof__(__arg3), \ |
| | | __typeof__(__arg4)))__originalIMP)(__receivingObject, __swizzledSEL, __arg1, \ |
| | | __arg2, __arg3, __arg4) |
| | | |
| | | /** |
| | | * Invokes original IMP when the original selector takes 5 arguments. |
| | |
| | | */ |
| | | #define GUL_INVOKE_ORIGINAL_IMP5(__receivingObject, __swizzledSEL, __returnType, __originalIMP, \ |
| | | __arg1, __arg2, __arg3, __arg4, __arg5) \ |
| | | ((__returnType(*)(id, SEL, __typeof__(__arg1), __typeof__(__arg2), __typeof__(__arg3), \ |
| | | __typeof__(__arg4), __typeof__(__arg5)))__originalIMP)( \ |
| | | ((__returnType (*)(id, SEL, __typeof__(__arg1), __typeof__(__arg2), __typeof__(__arg3), \ |
| | | __typeof__(__arg4), __typeof__(__arg5)))__originalIMP)( \ |
| | | __receivingObject, __swizzledSEL, __arg1, __arg2, __arg3, __arg4, __arg5) |
| | | |
| | | /** |
| | |
| | | * @param __arg5 The fifth argument. |
| | | * @param __arg6 The sixth argument. |
| | | */ |
| | | #define GUL_INVOKE_ORIGINAL_IMP6(__receivingObject, __swizzledSEL, __returnType, __originalIMP, \ |
| | | __arg1, __arg2, __arg3, __arg4, __arg5, __arg6) \ |
| | | ((__returnType(*)(id, SEL, __typeof__(__arg1), __typeof__(__arg2), __typeof__(__arg3), \ |
| | | __typeof__(__arg4), __typeof__(__arg5), __typeof__(__arg6)))__originalIMP)( \ |
| | | #define GUL_INVOKE_ORIGINAL_IMP6(__receivingObject, __swizzledSEL, __returnType, __originalIMP, \ |
| | | __arg1, __arg2, __arg3, __arg4, __arg5, __arg6) \ |
| | | ((__returnType (*)(id, SEL, __typeof__(__arg1), __typeof__(__arg2), __typeof__(__arg3), \ |
| | | __typeof__(__arg4), __typeof__(__arg5), __typeof__(__arg6)))__originalIMP)( \ |
| | | __receivingObject, __swizzledSEL, __arg1, __arg2, __arg3, __arg4, __arg5, __arg6) |
| | | |
| | | /** |
| | |
| | | */ |
| | | #define GUL_INVOKE_ORIGINAL_IMP7(__receivingObject, __swizzledSEL, __returnType, __originalIMP, \ |
| | | __arg1, __arg2, __arg3, __arg4, __arg5, __arg6, __arg7) \ |
| | | ((__returnType(*)(id, SEL, __typeof__(__arg1), __typeof__(__arg2), __typeof__(__arg3), \ |
| | | __typeof__(__arg4), __typeof__(__arg5), __typeof__(__arg6), \ |
| | | __typeof__(__arg7)))__originalIMP)( \ |
| | | ((__returnType (*)(id, SEL, __typeof__(__arg1), __typeof__(__arg2), __typeof__(__arg3), \ |
| | | __typeof__(__arg4), __typeof__(__arg5), __typeof__(__arg6), \ |
| | | __typeof__(__arg7)))__originalIMP)( \ |
| | | __receivingObject, __swizzledSEL, __arg1, __arg2, __arg3, __arg4, __arg5, __arg6, __arg7) |
| | | |
| | | /** |
| | |
| | | */ |
| | | #define GUL_INVOKE_ORIGINAL_IMP8(__receivingObject, __swizzledSEL, __returnType, __originalIMP, \ |
| | | __arg1, __arg2, __arg3, __arg4, __arg5, __arg6, __arg7, __arg8) \ |
| | | ((__returnType(*)(id, SEL, __typeof__(__arg1), __typeof__(__arg2), __typeof__(__arg3), \ |
| | | __typeof__(__arg4), __typeof__(__arg5), __typeof__(__arg6), \ |
| | | __typeof__(__arg7), __typeof__(__arg8)))__originalIMP)( \ |
| | | ((__returnType (*)(id, SEL, __typeof__(__arg1), __typeof__(__arg2), __typeof__(__arg3), \ |
| | | __typeof__(__arg4), __typeof__(__arg5), __typeof__(__arg6), \ |
| | | __typeof__(__arg7), __typeof__(__arg8)))__originalIMP)( \ |
| | | __receivingObject, __swizzledSEL, __arg1, __arg2, __arg3, __arg4, __arg5, __arg6, __arg7, \ |
| | | __arg8) |
| | | |
| | |
| | | #define GUL_INVOKE_ORIGINAL_IMP9(__receivingObject, __swizzledSEL, __returnType, __originalIMP, \ |
| | | __arg1, __arg2, __arg3, __arg4, __arg5, __arg6, __arg7, __arg8, \ |
| | | __arg9) \ |
| | | ((__returnType(*)(id, SEL, __typeof__(__arg1), __typeof__(__arg2), __typeof__(__arg3), \ |
| | | __typeof__(__arg4), __typeof__(__arg5), __typeof__(__arg6), \ |
| | | __typeof__(__arg7), __typeof__(__arg8), __typeof__(__arg9)))__originalIMP)( \ |
| | | ((__returnType (*)(id, SEL, __typeof__(__arg1), __typeof__(__arg2), __typeof__(__arg3), \ |
| | | __typeof__(__arg4), __typeof__(__arg5), __typeof__(__arg6), \ |
| | | __typeof__(__arg7), __typeof__(__arg8), __typeof__(__arg9)))__originalIMP)( \ |
| | | __receivingObject, __swizzledSEL, __arg1, __arg2, __arg3, __arg4, __arg5, __arg6, __arg7, \ |
| | | __arg8, __arg9) |
| | | |