Skip to content

swift_dynamicCastObjCClassMetatypeUnconditional(__________)

0x41c edited this page Feb 28, 2022 · 1 revision

swift_dynamicCastObjCClassMetatypeUnconditional(_:_:_:_:_:)

Check to determine castability from a source type of objective-c origin to a target type also of the same origin.

@_silgen_name("swift_dynamicCastObjCClassMetatypeUnconditional")
public func swift_dynamicCastObjCClassMetatypeUnconditional(
    _ sourceType: Any.Type,
    _ targetType: Any.Type,
    _ fileName: UnsafePointer<CChar>?,
    _ lineNumber: UInt?,
    _ columnNumber: UInt?
) -> UnsafeRawPointer

Parameters

  • sourceType: The source type to cast into the target type.
  • targetType: The target type to cast into the source type.
  • fileName: The source filename from which to report failure.
  • lineNumber: The source line from which to report failure.
  • column: The source column from which to report failure.

Returns

The source type if successful or aborts otherwise.

Types
Protocols
Global Typealiases
Global Functions
Clone this wiki locally