swizzleCfunction icon indicating copy to clipboard operation
swizzleCfunction copied to clipboard

Swizzle a C function with your own while executing a block

swizzleCfunction

CI Status Version License Platform

Usage

[PZSwizzle function:@"kill" with:@"doNotKill" whileExecuting:^{
    [CrashReporter simulateCrashBySignal:9];
}];

To run the example project tests, clone the repo, and run pod install from the Example directory first.

Installation

swizzleCfunction is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'swizzleCfunction'

Author

Paul Zabelin, https://github.com/paulz

License

swizzleCfunction is available under the MIT license. See the LICENSE file for more info.