MCPcopy Create free account
hub / github.com/Redot-Engine/redot-engine / is_valid

Method is_valid

modules/gdscript/gdscript_function.cpp:177–196  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

175}
176
177bool GDScriptFunctionState::is_valid(bool p_extended_check) const {
178 if (function == nullptr) {
179 return false;
180 }
181
182 if (p_extended_check) {
183 MutexLock lock(GDScriptLanguage::get_singleton()->mutex);
184
185 // Script gone?
186 if (!scripts_list.in_list()) {
187 return false;
188 }
189 // Class instance gone? (if not static function)
190 if (state.instance && !instances_list.in_list()) {
191 return false;
192 }
193 }
194
195 return true;
196}
197
198Variant GDScriptFunctionState::resume(const Variant &p_arg) {
199 ERR_FAIL_NULL_V(function, Variant());

Callers 1

resumeMethod · 0.45

Calls 1

in_listMethod · 0.80

Tested by

no test coverage detected