From 8c29ef38fcd4d8d41a27b5722f57d807c4ae0e6b Mon Sep 17 00:00:00 2001 From: "Yevhen Babiichuk (DustDFG)" Date: Sun, 20 Oct 2024 08:55:27 +0300 Subject: [PATCH] Add some comments to #endif's where it will easier life Also added some new line to improve readability Signed-off-by: Yevhen Babiichuk (DustDFG) Co-authored-by: Danil Alexeev --- modules/gdscript/gdscript.cpp | 8 +++---- modules/gdscript/gdscript_analyzer.cpp | 2 +- modules/gdscript/gdscript_editor.cpp | 6 ++--- modules/gdscript/gdscript_parser.cpp | 2 +- .../gdscript/gdscript_utility_functions.cpp | 4 ++-- modules/gdscript/gdscript_vm.cpp | 22 +++++++++++-------- 6 files changed, 24 insertions(+), 20 deletions(-) diff --git a/modules/gdscript/gdscript.cpp b/modules/gdscript/gdscript.cpp index 18f2ccc455e..8052eaeb122 100644 --- a/modules/gdscript/gdscript.cpp +++ b/modules/gdscript/gdscript.cpp @@ -2546,11 +2546,11 @@ void GDScriptLanguage::reload_all_scripts() { } } } -#endif +#endif // TOOLS_ENABLED } reload_scripts(scripts, true); -#endif +#endif // DEBUG_ENABLED } void GDScriptLanguage::reload_scripts(const Array &p_scripts, bool p_soft_reload) { @@ -2620,7 +2620,7 @@ void GDScriptLanguage::reload_scripts(const Array &p_scripts, bool p_soft_reload } } -#endif +#endif // TOOLS_ENABLED for (const KeyValue>> &F : scr->pending_reload_state) { map[F.key] = F.value; //pending to reload, use this one instead @@ -2688,7 +2688,7 @@ void GDScriptLanguage::reload_scripts(const Array &p_scripts, bool p_soft_reload //if instance states were saved, set them! } -#endif +#endif // DEBUG_ENABLED } void GDScriptLanguage::reload_tool_script(const Ref