diff --git a/Sources/Backtrace/Backtrace.swift b/Sources/Backtrace/Backtrace.swift index 5b6ff56..67990ff 100644 --- a/Sources/Backtrace/Backtrace.swift +++ b/Sources/Backtrace/Backtrace.swift @@ -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() {} }