Skip to content

Instantly share code, notes, and snippets.

@yycking
Created December 12, 2016 10:16
Show Gist options
  • Save yycking/d005eb94c24fbd40f4a5b470516bcfcc to your computer and use it in GitHub Desktop.
Save yycking/d005eb94c24fbd40f4a5b470516bcfcc to your computer and use it in GitHub Desktop.
crashReporter.setCrashCallbacks on swift
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