Skip to content

Commit

Permalink
don’t limit shadow methods
Browse files Browse the repository at this point in the history
  • Loading branch information
maerki committed Sep 12, 2024
1 parent 9d56c81 commit 9fde6a3
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions Sources/UBFoundation/Logging/LoggingMacros+Shadowing.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,16 @@
// Created by Nicolas Märki on 12.09.2024.
//

@available(macOS 11.0, iOS 14.0, watchOS 7.0, tvOS 14.0, *)
@available(*, message: "Use #print instead")
public func print(_ items: Any..., separator: String = " ", terminator: String = "\n") {
Swift.print(items, separator: separator, terminator: terminator)
}

@available(macOS 11.0, iOS 14.0, watchOS 7.0, tvOS 14.0, *)
@available(*, message: "Use #assert instead")
public func assert(_ condition: @autoclosure () -> Bool, _ message: @autoclosure () -> String = String(), file: StaticString = #file, line: UInt = #line) {
Swift.assert(condition(), message(), file: file, line: line)
}

@available(macOS 11.0, iOS 14.0, watchOS 7.0, tvOS 14.0, *)
@available(*, message: "Use #assertionFailure instead")
public func assertionFailure(_ message: @autoclosure () -> String = String(), file: StaticString = #file, line: UInt = #line) {
Swift.assertionFailure(message(), file: file, line: line)
Expand Down

0 comments on commit 9fde6a3

Please sign in to comment.