Syntax
iscclosure(func: function): booleanArguments
| Name | Type | Description |
|---|---|---|
func | function | Function to test. |
Returns
| Name | Type | Description |
|---|---|---|
isCClosure | boolean | True when the function is a C closure. |
Description
Returns whether a function is a native C closure.
Call it with 1 parameter(s): func. The argument table explains which values are required and which ones only refine the behavior.
It returns isCClosure (boolean). Use the returns table to separate successful values from nil results and recoverable errors.
Example
Example call with placeholder values.
local result = iscclosure(function() end)
print(result)