remobjects / SwiftBaseLibrary

Other
92 stars 13 forks source link

fatalError-function not allowing empty call #10

Closed weyert closed 5 years ago

weyert commented 5 years ago

The fatalError-function doesn't support the common call fatalError() as seen in Swift projects

Now I have to admit I tried to solve this but couldn't see a good solution as message is a closure and in Swift's stdlib defined as:

func fatalError(_ message: @autoclosure () -> String = String(), file: StaticString = #file, line: UInt = #line) -> Never

The String() is not working in our case

dwarfland commented 5 years ago

thanx, fixed.