| 429 | } |
| 430 | |
| 431 | bool Squirrel::CallBoolMethod(HSQOBJECT instance, std::string_view method_name, bool *res, int suspend) |
| 432 | { |
| 433 | HSQOBJECT ret; |
| 434 | if (!this->CallMethod(instance, method_name, &ret, suspend)) return false; |
| 435 | if (ret._type != OT_BOOL) return false; |
| 436 | *res = ObjectToBool(&ret); |
| 437 | return true; |
| 438 | } |
| 439 | |
| 440 | /* static */ bool Squirrel::CreateClassInstanceVM(HSQUIRRELVM vm, const std::string &class_name, void *real_instance, HSQOBJECT *instance, SQRELEASEHOOK release_hook, bool prepend_API_name) |
| 441 | { |
no test coverage detected