| 420 | } |
| 421 | |
| 422 | bool Squirrel::CallIntegerMethod(HSQOBJECT instance, std::string_view method_name, int *res, int suspend) |
| 423 | { |
| 424 | HSQOBJECT ret; |
| 425 | if (!this->CallMethod(instance, method_name, &ret, suspend)) return false; |
| 426 | if (ret._type != OT_INTEGER) return false; |
| 427 | *res = ObjectToInteger(&ret); |
| 428 | return true; |
| 429 | } |
| 430 | |
| 431 | bool Squirrel::CallBoolMethod(HSQOBJECT instance, std::string_view method_name, bool *res, int suspend) |
| 432 | { |
no test coverage detected