| 20 | #include "../safeguards.h" |
| 21 | |
| 22 | bool ScriptInfo::CheckMethod(std::string_view name) const |
| 23 | { |
| 24 | if (!this->engine->MethodExists(this->SQ_instance, name)) { |
| 25 | this->engine->ThrowError(fmt::format("your info.nut/library.nut doesn't have the method '{}'", name)); |
| 26 | return false; |
| 27 | } |
| 28 | return true; |
| 29 | } |
| 30 | |
| 31 | /* static */ SQInteger ScriptInfo::Constructor(HSQUIRRELVM vm, ScriptInfo &info) |
| 32 | { |
no test coverage detected