Skip to content

Swizzle a C function with your own while executing a block

License

Notifications You must be signed in to change notification settings

paulz/swizzleCfunction

Repository files navigation

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.

About

Swizzle a C function with your own while executing a block

Resources

License

Stars

Watchers

Forks

Packages

No packages published