Created
December 12, 2016 10:16
-
-
Save yycking/d005eb94c24fbd40f4a5b470516bcfcc to your computer and use it in GitHub Desktop.
crashReporter.setCrashCallbacks on swift
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func crashReporterScreenCapture(info:UnsafeMutablePointer<siginfo_t>, uap:UnsafeMutablePointer<ucontext_t>, context:UnsafeMutablePointer<Void>) { | |
} | |
var crashReporterCapture = PLCrashReporterCallbacks() | |
crashReporterCapture.version = 0 | |
crashReporterCapture.context = nil | |
crashReporterCapture.handleSignal = crashReporterScreenCapture | |
crashReporter.setCrashCallbacks(&crashReporterCapture) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment