Show all debug info when running with console attached.

This commit is contained in:
UnknownShadow200 2015-11-01 11:04:44 +11:00
parent ddba1b1838
commit 77c31f33bc
2 changed files with 1 additions and 12 deletions

View file

@ -222,15 +222,11 @@ namespace ClassicalSharp {
}
public static void LogDebug( string text ) {
#if DEBUG
Console.WriteLine( text );
#endif
}
public static void LogDebug( string text, params object[] args ) {
#if DEBUG
Console.WriteLine( String.Format( text, args ) );
#endif
}
public static int Floor( float value ) {

View file

@ -1,5 +1,4 @@
//#define DEBUG_OPENTK
using System;
using System;
namespace OpenTK {
@ -12,21 +11,15 @@ namespace OpenTK {
}
public static void Print( string text ) {
#if DEBUG_OPENTK
Console.WriteLine( text );
#endif
}
public static void Print( object arg ) {
#if DEBUG_OPENTK
Console.WriteLine( arg );
#endif
}
public static void Print( string text, params object[] args ) {
#if DEBUG_OPENTK
Console.WriteLine( text, args );
#endif
}
}
}