Contents

objc_getProtocol(_:)

Returns a specified protocol.

Declaration

func objc_getProtocol(_ name: UnsafePointer<CChar>) -> Protocol?

Parameters

  • name:

    The name of a protocol.

Return Value

The protocol named name, or NULL if no protocol named name could be found.

Discussion

This function acquires the runtime lock.

See Also

Working with Protocols