diff --git a/src/EcsCollectionsExtensions.cs b/src/EcsCollectionsExtensions.cs index cae9511..efbce96 100644 --- a/src/EcsCollectionsExtensions.cs +++ b/src/EcsCollectionsExtensions.cs @@ -1,4 +1,8 @@ -namespace DCFApixels.DragonECS +#if DISABLE_DEBUG +#undef DEBUG +#endif + +namespace DCFApixels.DragonECS { public static class EcsCollectionsExtensions { diff --git a/src/Exceptions.cs b/src/Exceptions.cs index 54cca04..501091f 100644 --- a/src/Exceptions.cs +++ b/src/Exceptions.cs @@ -1,4 +1,7 @@ -using System; +#if DISABLE_DEBUG +#undef DEBUG +#endif +using System; namespace DCFApixels.DragonECS { diff --git a/src/ThreadRunner.cs b/src/ThreadRunner.cs index e49fd5f..dac7b3f 100644 --- a/src/ThreadRunner.cs +++ b/src/ThreadRunner.cs @@ -1,3 +1,6 @@ +#if DISABLE_DEBUG +#undef DEBUG +#endif using DCFApixels.DragonECS.ClassicThreadsInternal; using System; using System.Collections.Concurrent; @@ -69,7 +72,7 @@ namespace DCFApixels.DragonECS { if (_isRunning) { -#if (DEBUG && !DISABLE_DEBUG) || ENABLE_DRAGONECS_ASSERT_CHEKS +#if DEBUG || ENABLE_DRAGONECS_ASSERT_CHEKS if (_threads.Any(o => o.thread == Thread.CurrentThread)) { Throw.DoubleParallelIteration();