DEBUG preprocessor conditional inside method

This commit is contained in:
White 2015-04-09 15:56:51 +09:30
parent c0f28f4aaf
commit b4f2ddef47
5 changed files with 11 additions and 15 deletions

View file

@ -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)