sq_setforeignptr

Squirrel 2.2

sq_setforeignptr

void sq_setforeignptr(HSQUIRRELVM v, SQUserPointer p);

Sets the foreign pointer of a certain VM instance. The foreign pointer is an arbitrary user defined pointer associated to a VM (by default is value id 0). This pointer is ignored by the VM.

parameters:
HSQUIRRELVM v

the target VM

SQUserPointer p

The pointer that has to be set