mirror of
https://github.com/DCFApixels/DragonECS.git
synced 2025-09-18 18:14:37 +08:00
add deep debug for GetMeta
This commit is contained in:
parent
3e59e7a5bd
commit
dd8b126c27
@ -1,6 +1,7 @@
|
|||||||
#if DISABLE_DEBUG
|
#if DISABLE_DEBUG
|
||||||
#undef DEBUG
|
#undef DEBUG
|
||||||
#endif
|
#endif
|
||||||
|
using DCFApixels.DragonECS.Internal;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
#if DEBUG || !REFLECTION_DISABLED
|
#if DEBUG || !REFLECTION_DISABLED
|
||||||
@ -312,6 +313,9 @@ namespace DCFApixels.DragonECS
|
|||||||
{
|
{
|
||||||
public static TypeMeta GetMeta(this object self)
|
public static TypeMeta GetMeta(this object self)
|
||||||
{
|
{
|
||||||
|
#if DEBUG && DRAGONECS_DEEP_DEBUG
|
||||||
|
if (self is Type type) { Throw.DeepDebugException(); }
|
||||||
|
#endif
|
||||||
return EcsDebugUtility.GetTypeMeta(self);
|
return EcsDebugUtility.GetTypeMeta(self);
|
||||||
}
|
}
|
||||||
public static TypeMeta ToMeta(this Type self)
|
public static TypeMeta ToMeta(this Type self)
|
||||||
|
Loading…
Reference in New Issue
Block a user