sq_objtointeger

Squirrel 3.0

sq_objtointeger

SQInteger sq_objtointeger(HSQOBJECT * po);

return the integer value of a raw object reference.

parameters:
HSQOBJECT * po

pointer to an object handler

remarks:

If the object is a float will convert it to integer. If the object is not a number will always return 0.