Companion

Helper for calling Core Foundation functions, and bridging exceptions across.

Usage:

corecall { SomeCoreFoundationFunction(arg1, arg2, ..., error) }

error is provided by the implicit receiver object, and will be mapped to a CoreFoundationException if an error occurs.

Functions

Link copied to clipboard
operator fun <T> invoke(call: corecall.() -> T?): T