1
0
mirror of https://github.com/twiglet/cs2j.git synced 2025-01-18 13:15:17 +01:00

add Warnings

This commit is contained in:
Kevin Glynn 2010-11-01 08:32:13 +01:00
parent 14ae0a1231
commit 24c2470528

View File

@ -16,10 +16,16 @@ namespace RusticiSoftware.Translator.CSharp
: base(input, state)
{ }
protected void Warning(int line, String s)
{
if (Cfg.Warnings)
Console.Out.WriteLine("{0}({1}) warning: {2}", Filename, line, s);
}
protected void Warning(String s)
{
if (Cfg.Warnings)
Console.Out.WriteLine("{0} WARNING: {1}", Filename, s);
Console.Out.WriteLine("{0} warning: {1}", Filename, s);
}
protected void Debug(String s)