sq_cmp

Squirrel 2.2

sq_cmp

SQInteger sq_cmp(HSQUIRRELVM v);

compares 2 object from the stack and compares them.

parameters:
HSQUIRRELVM v

the target VM

return:

> 0 if obj1>obj2
== 0 if obj1==obj2
< 0 if obj1<obj2