1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

GDScript: Cancel suspended functions when reloading a script

This commit is contained in:
HolonProduction
2025-02-07 10:32:05 +01:00
parent 134da37497
commit 676e4c9013
7 changed files with 51 additions and 15 deletions

View File

@@ -616,6 +616,13 @@ public:
bool is_valid(bool p_extended_check = false) const;
Variant resume(const Variant &p_arg = Variant());
#ifdef DEBUG_ENABLED
// Returns a human-readable representation of the function.
String get_readable_function() {
return state.function_name;
}
#endif
void _clear_stack();
void _clear_connections();