add DISABLE_DEBUG

This commit is contained in:
DCFApixels 2025-10-12 21:56:00 +08:00
parent ca06523776
commit 2c376088a7
14 changed files with 74 additions and 28 deletions

View File

@ -1,4 +1,7 @@
using System.Runtime.CompilerServices;
#if DISABLE_DEBUG
#undef DEBUG
#endif
using System.Runtime.CompilerServices;
using UnityEngine;
using UnityEngine.Rendering;
@ -50,6 +53,12 @@ namespace DCFApixels.DebugXCore
{
public static class DebugXDefines
{
public const bool DISABLE_DEBUG =
#if DISABLE_DEBUG
true;
#else
false;
#endif
public const bool DEBUGX_DISABLE_INBUILD =
#if DEBUGX_DISABLE_INBUILD
true;

View File

@ -1,8 +1,12 @@
//#undef DEBUG
#if DISABLE_DEBUG
#undef DEBUG
#endif
#if DEBUG
#define DEV_MODE
#endif
#if UNITY_EDITOR
using UnityEditor;
#endif
using System;
using DCFApixels.DebugXCore;
using System.Collections.Generic;
@ -13,9 +17,6 @@ using UnityEngine.PlayerLoop;
using Unity.Collections.LowLevel.Unsafe;
using DCFApixels.DebugXCore.Internal;
using System.Linq;
#if UNITY_EDITOR
using UnityEditor;
#endif
namespace DCFApixels
{

View File

@ -1,7 +1,10 @@
using UnityEngine;
#if DISABLE_DEBUG
#undef DEBUG
#endif
#if UNITY_EDITOR
using UnityEditor;
#endif
using UnityEngine;
namespace DCFApixels
{

View File

@ -1,9 +1,14 @@
using DCFApixels.DebugXCore;
#if DISABLE_DEBUG
#undef DEBUG
#endif
#if UNITY_EDITOR
using UnityEditor;
#endif
using DCFApixels.DebugXCore;
using DCFApixels.DebugXCore.Internal;
using System.Runtime.InteropServices;
using Unity.Collections.LowLevel.Unsafe;
using Unity.Jobs;
using UnityEditor;
using UnityEngine;
using UnityEngine.Rendering;

View File

@ -1,4 +1,7 @@
using DCFApixels.DebugXCore;
#if DISABLE_DEBUG
#undef DEBUG
#endif
using DCFApixels.DebugXCore;
using UnityEngine;
namespace DCFApixels

View File

@ -1,4 +1,7 @@
using DCFApixels.DebugXCore;
#if DISABLE_DEBUG
#undef DEBUG
#endif
using DCFApixels.DebugXCore;
using DCFApixels.DebugXCore.Internal;
using System;
using System.Collections.Generic;

View File

@ -1,9 +1,12 @@
using DCFApixels.DebugXCore;
using UnityEngine;
using UnityEngine.Rendering;
#if DISABLE_DEBUG
#undef DEBUG
#endif
#if UNITY_EDITOR
using UnityEditor;
#endif
using DCFApixels.DebugXCore;
using UnityEngine;
using UnityEngine.Rendering;
namespace DCFApixels
{

View File

@ -1,4 +1,7 @@
using DCFApixels.DebugXCore;
#if DISABLE_DEBUG
#undef DEBUG
#endif
using DCFApixels.DebugXCore;
using System;
using UnityEngine;
using UnityEngine.Rendering;

View File

@ -1,4 +1,7 @@
using DCFApixels.DebugXCore.Internal;
#if DISABLE_DEBUG
#undef DEBUG
#endif
using DCFApixels.DebugXCore.Internal;
using UnityEngine;
namespace DCFApixels

View File

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

View File

@ -1,4 +1,7 @@
using System.Runtime.CompilerServices;
#if DISABLE_DEBUG
#undef DEBUG
#endif
using System.Runtime.CompilerServices;
using UnityEngine;
namespace DCFApixels

View File

@ -1,10 +1,13 @@
using DCFApixels.DebugXCore;
using System.Runtime.CompilerServices;
//#if UNITY_EDITOR
#if DISABLE_DEBUG
#undef DEBUG
#endif
#if UNITY_EDITOR
using UnityEditor;
#endif
using DCFApixels.DebugXCore;
using System.Runtime.CompilerServices;
using UnityEngine;
using UnityEngine.Rendering;
//#endif
namespace DCFApixels
{

View File

@ -1,11 +1,14 @@
using System;
#if DISABLE_DEBUG
#undef DEBUG
#endif
#if UNITY_EDITOR
using UnityEditor;
#endif
using System;
using System.Linq;
using System.Reflection;
using System.Runtime.CompilerServices;
using UnityEngine;
#if UNITY_EDITOR
using UnityEditor;
#endif
namespace DCFApixels.DebugXCore
{

View File

@ -1,5 +1,6 @@
#undef DEBUG
#if DISABLE_DEBUG
#undef DEBUG
#endif
#if DEBUG
#define DEV_MODE
#endif