Skip to content
This repository has been archived by the owner on Oct 28, 2024. It is now read-only.

Commit

Permalink
Merge pull request #49 from weissi/jw-other-platforms
Browse files Browse the repository at this point in the history
forgot other platforms
weissi authored Jul 16, 2021
2 parents e434780 + b3b195e commit d3e04a9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Sources/Backtrace/Backtrace.swift
Original file line number Diff line number Diff line change
@@ -122,6 +122,11 @@ public enum Backtrace {
#endif
}

@available(*, deprecated, message: "signal selection unavailable on Windows")
public static func install(signals: [CInt]) {
Backtrace.install()
}

public static func install() {
// Install a last-chance vectored exception handler to capture the error
// before the termination and report the stack trace. It is unlikely
@@ -259,6 +264,8 @@ public enum Backtrace {
public enum Backtrace {
public static func install() {}

public static func install(signals: [CInt]) {}

@available(*, deprecated, message: "This method will be removed in the next major version.")
public static func print() {}
}

0 comments on commit d3e04a9

Please sign in to comment.