Skip to main content

参数

function
必填
Function to return directly when it is already a C closure, or wrap in a wrapped C closure otherwise.
string
Optional debug name used for the created closure.

返回值

function
The original function when it is already a C closure, or a new C closure that calls the provided function.

示例

Create a wrapped C closure for an L closure.