Function

objc_getRequiredClass(_:)

Returns the class definition of a specified class.

Declaration

func objc_getRequiredClass(_ name: UnsafePointer<Int8>) -> AnyClass

Parameters

name

The name of the class to look up.

Return Value

The Class object for the named class.

Discussion

This function is the same as objc_getClass(_:), but kills the process if the class is not found.

This function is used by ZeroLink, where failing to find a class would be a compile-time link error without ZeroLink.

See Also

Obtaining Class Definitions

func objc_copyClassList(UnsafeMutablePointer<UInt32>?)

Creates and returns a list of pointers to all registered class definitions.

func objc_lookUpClass(UnsafePointer<Int8>)

Returns the class definition of a specified class.

func objc_getClass(UnsafePointer<Int8>)

Returns the class definition of a specified class.

func objc_getMetaClass(UnsafePointer<Int8>)

Returns the metaclass definition of a specified class.