isnewcclosure
Checks whether a C function is a wrapper made by newcclosure.
Syntax
isnewcclosure(func: function) -> boolean
Also available as
iscustomcclosure
Parameters
| Parameter | Type | Description |
|---|---|---|
func | function | The function to check. |
Returns
| Type | Description |
|---|---|
boolean | true when the function is a wrapper created by newcclosure. |
Description
Ordinary built-in C functions return false. Only wrappers Apex created return true.
Example
print(isnewcclosure(print))
print(isnewcclosure(newcclosure(function() end)))
These are Game executor contracts. Check build requirements and session lifetimes before using them.
