sq_objtobool

Squirrel 2.2

sq_objtobool

SQBool sq_objtobool(HSQOBJECT * po);

return the bool value of a raw object reference.

parameters:
HSQOBJECT * po

pointer to an object handler

remarks:

If the object is not a bool will always return false.