Function

objc_getProtocol(_:)

Returns a specified protocol.

Declaration

func objc_getProtocol(_ name: UnsafePointer<Int8>!) -> 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.