mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-24 05:10:42 -04:00
26 lines
629 B
C#
26 lines
629 B
C#
using System;
|
|
|
|
namespace OpenTK {
|
|
|
|
/// <summary> Placeholder for System.Diagnostics.Debug class because it crashes on some Mono version on Linux. </summary>
|
|
public static class Debug {
|
|
|
|
public static void Assert( bool condition ) {
|
|
if( !condition )
|
|
throw new InvalidOperationException( "Assertion failed!" );
|
|
}
|
|
|
|
public static void Print( string text ) {
|
|
Console.WriteLine( text );
|
|
}
|
|
|
|
public static void Print( object arg ) {
|
|
Console.WriteLine( arg );
|
|
}
|
|
|
|
public static void Print( string text, params object[] args ) {
|
|
Console.WriteLine( text, args );
|
|
}
|
|
}
|
|
}
|