mirror of
https://github.com/DCFApixels/DragonECS-ClassicThreads.git
synced 2025-09-18 11:54:34 +08:00
defines refactoring
This commit is contained in:
parent
2faa845b31
commit
a38975cc7d
@ -1,4 +1,8 @@
|
|||||||
namespace DCFApixels.DragonECS
|
#if DISABLE_DEBUG
|
||||||
|
#undef DEBUG
|
||||||
|
#endif
|
||||||
|
|
||||||
|
namespace DCFApixels.DragonECS
|
||||||
{
|
{
|
||||||
public static class EcsCollectionsExtensions
|
public static class EcsCollectionsExtensions
|
||||||
{
|
{
|
||||||
|
@ -1,4 +1,7 @@
|
|||||||
using System;
|
#if DISABLE_DEBUG
|
||||||
|
#undef DEBUG
|
||||||
|
#endif
|
||||||
|
using System;
|
||||||
|
|
||||||
namespace DCFApixels.DragonECS
|
namespace DCFApixels.DragonECS
|
||||||
{
|
{
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
#if DISABLE_DEBUG
|
||||||
|
#undef DEBUG
|
||||||
|
#endif
|
||||||
using DCFApixels.DragonECS.ClassicThreadsInternal;
|
using DCFApixels.DragonECS.ClassicThreadsInternal;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Concurrent;
|
using System.Collections.Concurrent;
|
||||||
@ -69,7 +72,7 @@ namespace DCFApixels.DragonECS
|
|||||||
{
|
{
|
||||||
if (_isRunning)
|
if (_isRunning)
|
||||||
{
|
{
|
||||||
#if (DEBUG && !DISABLE_DEBUG) || ENABLE_DRAGONECS_ASSERT_CHEKS
|
#if DEBUG || ENABLE_DRAGONECS_ASSERT_CHEKS
|
||||||
if (_threads.Any(o => o.thread == Thread.CurrentThread))
|
if (_threads.Any(o => o.thread == Thread.CurrentThread))
|
||||||
{
|
{
|
||||||
Throw.DoubleParallelIteration();
|
Throw.DoubleParallelIteration();
|
||||||
|
Loading…
Reference in New Issue
Block a user