mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-20 12:58:39 +00:00
17 lines
No EOL
386 B
C#
17 lines
No EOL
386 B
C#
using System;
|
|
|
|
namespace Cosmos.IL2CPU.Plugs.Diagnostics {
|
|
//[Plug(Target=typeof(Debug))]
|
|
public static class DebugImpl {
|
|
public static void WriteLine(string aMessage) {
|
|
Console.Write("DEBUG: ");
|
|
Console.WriteLine(aMessage);
|
|
}
|
|
|
|
public static void WriteLineIf(bool aCondition, string aMessage) {
|
|
if(aCondition) {
|
|
WriteLine(aMessage);
|
|
}
|
|
}
|
|
}
|
|
} |