DEBUG preprocessor conditional inside method
This commit is contained in:
parent
c0f28f4aaf
commit
b4f2ddef47
5 changed files with 11 additions and 15 deletions
|
|
@ -858,13 +858,11 @@ namespace TShockAPI
|
|||
LastDisableNotification = DateTime.UtcNow;
|
||||
}
|
||||
}
|
||||
#if DEBUG
|
||||
var trace = new StackTrace();
|
||||
StackFrame frame = null;
|
||||
frame = trace.GetFrame(1);
|
||||
if (frame != null && frame.GetMethod().DeclaringType != null)
|
||||
TShock.Log.Debug(frame.GetMethod().DeclaringType.Name + " called Disable().");
|
||||
#endif
|
||||
}
|
||||
|
||||
public virtual void Whoopie(object time)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue