sq_newclosure |
void sq_newclosure(
HSQUIRRELVM v, HSQFUNCTION func, SQInteger nfreevars)
;
create a new native closure, pops n values set those as free variables of the new closure, and push the new closure in the stack.
- parameters:
-
- HSQUIRRELVM v
-
the target VM
- HSQFUNCTION func
-
a pointer to a native-function
- SQInteger nfreevars
-
number of free variables(can be 0)