sq_instanceof

Squirrel 2.2

sq_instanceof

SQBool sq_instanceof(HSQUIRRELVM v);

Determintes if an object is an instance of a certain class. Expects an istance and a class in the stack.

parameters:
HSQUIRRELVM v

the target VM

return:

SQTrue if the instance at position -1 in the stack is an instance of the class object at position -2 in the stack.

remarks:

The function doesn't pop any object from the stack.