defines refactoring

This commit is contained in:
DCFApixels 2025-03-14 16:53:39 +08:00
parent 2faa845b31
commit a38975cc7d
3 changed files with 13 additions and 3 deletions

View File

@ -1,4 +1,8 @@
namespace DCFApixels.DragonECS
#if DISABLE_DEBUG
#undef DEBUG
#endif
namespace DCFApixels.DragonECS
{
public static class EcsCollectionsExtensions
{

View File

@ -1,4 +1,7 @@
using System;
#if DISABLE_DEBUG
#undef DEBUG
#endif
using System;
namespace DCFApixels.DragonECS
{

View File

@ -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();