Functions

The following functions are available globally.

  • This is an warning that something needs to be addressed before shipping. !!! TODO: This should be disabled in production builds

    Declaration

    Swift

    public func flintAdvisoryNotice(_ message: String, file: StaticString = #file, line: UInt32 = #line)
  • This is an warning that something is definitely broken and needs to be addressed. AKA Footgun prevention. !!! TODO: This should be disabled in production builds

    Declaration

    Swift

    public func flintAdvisoryPrecondition(_ expression: @autoclosure () -> Bool, _ message: String, file: StaticString = #file, line: UInt32 = #line)
  • AKA You are holding it wrong !!! TODO: This should be disabled in production builds

    Declaration

    Swift

    public func flintUsagePrecondition(_ expression: @autoclosure () -> Bool, _ message: String, file: StaticString = #file, line: UInt32 = #line)
  • Undocumented

    Declaration

    Swift

    public func flintUsageError(_ message: String, file: StaticString = #file, line: UInt32 = #line) -> Never
  • This is an internal bug, AKA This should never happen !!! TODO: This should be disabled in production builds

    Declaration

    Swift

    public func flintBugPrecondition(_ expression: @autoclosure () -> Bool, _ message: String, file: StaticString = #file, line: UInt32 = #line)
  • This is an internal bug, AKA This should never happen

    Declaration

    Swift

    public func flintBug(_ message: String, file: StaticString = #file, line: UInt32 = #line) -> Never
  • Undocumented

    Declaration

    Swift

    public func flintNotImplemented(_ message: String, file: StaticString = #file, line: UInt32 = #line) -> Never