mirror of
https://github.com/unity-atoms/unity-atoms.git
synced 2025-01-22 08:08:51 -05:00
fix: conditional compilation for EDITOR only code
This commit is contained in:
parent
d4eb9ccc3b
commit
4ee7155b63
@ -60,10 +60,15 @@ namespace UnityAtoms
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if UNITY_EDITOR
|
||||||
public static StackTraceEntry Create(object obj, int skipFrames = 0) => AtomPreferences.IsDebugModeEnabled ? new StackTraceEntry(new StackTrace(skipFrames), obj) : null;
|
public static StackTraceEntry Create(object obj, int skipFrames = 0) => AtomPreferences.IsDebugModeEnabled ? new StackTraceEntry(new StackTrace(skipFrames), obj) : null;
|
||||||
|
|
||||||
public static StackTraceEntry Create(int skipFrames = 0) => AtomPreferences.IsDebugModeEnabled ? new StackTraceEntry(new StackTrace(skipFrames)) : null;
|
public static StackTraceEntry Create(int skipFrames = 0) => AtomPreferences.IsDebugModeEnabled ? new StackTraceEntry(new StackTrace(skipFrames)) : null;
|
||||||
|
#else
|
||||||
|
public static StackTraceEntry Create(object obj, int skipFrames = 0) => null;
|
||||||
|
|
||||||
|
public static StackTraceEntry Create(int skipFrames = 0) => null;
|
||||||
|
#endif
|
||||||
|
|
||||||
public override bool Equals(object obj) => Equals(obj as StackTraceEntry);
|
public override bool Equals(object obj) => Equals(obj as StackTraceEntry);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user