sq_setnativeclosurename

Squirrel 2.2

sq_setnativeclosurename

SQRESULT sq_setnativeclosurename(HSQUIRRELVM v, SQInteger idx, const SQChar * name);

sets the name of the native closure at the position idx in the stack. the name of a native closure is purely for debug pourposes. The name is retieved trough the function sq_stackinfos() while the closure is in the call stack.

parameters:
HSQUIRRELVM v

the target VM

SQInteger idx

index of the target native closure

const SQChar * name

the name that has to be set

return:

an SQRESULT