From b3b195e0e6fc4cde3bc92c7c6d34d5c3919be3ad Mon Sep 17 00:00:00 2001 From: Johannes Weiss Date: Fri, 16 Jul 2021 19:34:47 +0100 Subject: [PATCH] forgot other platforms --- Sources/Backtrace/Backtrace.swift | 7 +++++++ 1 file changed, 7 insertions(+) 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() {} }