sq_tobool |
void sq_tobool(
HSQUIRRELVM v, SQInteger idx, SQBool * b)
;
gets the value at position idx in the stack as bool.
- parameters:
-
- HSQUIRRELVM v
-
the target VM
- SQInteger idx
-
an index in the stack
- SQBool * b
-
A pointer to the bool that will store the value
- remarks:
-
if the object is not a bool the function converts the value too bool according to squirrel's rules. For instance the number 1 will result in true, and the number 0 in false.