All Projects → paulz → swizzleCfunction

paulz / swizzleCfunction

Licence: MIT License
Swizzle a C function with your own while executing a block

Programming Languages

objective c
16641 projects - #2 most used programming language
ruby
36898 projects - #4 most used programming language

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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].