mirror of
https://github.com/twiglet/cs2j.git
synced 2025-01-18 13:15:17 +01:00
add Warnings
This commit is contained in:
parent
14ae0a1231
commit
24c2470528
@ -16,10 +16,16 @@ namespace RusticiSoftware.Translator.CSharp
|
|||||||
: base(input, state)
|
: 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)
|
protected void Warning(String s)
|
||||||
{
|
{
|
||||||
if (Cfg.Warnings)
|
if (Cfg.Warnings)
|
||||||
Console.Out.WriteLine("{0} WARNING: {1}", Filename, s);
|
Console.Out.WriteLine("{0} warning: {1}", Filename, s);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void Debug(String s)
|
protected void Debug(String s)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user