From bc8b61bb069a9229dbceb61fedb8308c5d1e6a68 Mon Sep 17 00:00:00 2001 From: Ignacio Etcheverry Date: Tue, 22 Jan 2019 18:33:36 +0100 Subject: Mono: Fix hot reload build errors and cleanup --- modules/mono/csharp_script.h | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'modules/mono/csharp_script.h') diff --git a/modules/mono/csharp_script.h b/modules/mono/csharp_script.h index e554e1f41f..8a09be79a6 100644 --- a/modules/mono/csharp_script.h +++ b/modules/mono/csharp_script.h @@ -82,10 +82,7 @@ class CSharpScript : public Script { Set instances; -#ifdef DEBUG_ENABLED - Set pending_reload_instances; -#endif - +#ifdef GD_MONO_HOT_RELOAD struct StateBackup { // TODO // Replace with buffer containing the serialized state of managed scripts. @@ -93,8 +90,8 @@ class CSharpScript : public Script { List > properties; }; -#ifdef TOOLS_ENABLED - Map pending_reload_state; + Set pending_reload_instances; + Map pending_reload_state; #endif String source; @@ -313,7 +310,7 @@ public: bool debug_break(const String &p_error, bool p_allow_continue = true); bool debug_break_parse(const String &p_file, int p_line, const String &p_error); -#ifdef TOOLS_ENABLED +#ifdef GD_MONO_HOT_RELOAD bool is_assembly_reloading_needed(); void reload_assemblies(bool p_soft_reload); #endif -- cgit v1.2.3