Skip to content
This repository was archived by the owner on Oct 5, 2019. It is now read-only.

Commit a9c5734

Browse files
author
Zaczero
committed
Added object arg support in out function
1 parent 2143d20 commit a9c5734

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

SharpLoader/Program.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -438,15 +438,15 @@ public static int Compile()
438438
return 0;
439439
}
440440

441-
public static void Out(string text)
441+
public static void Out(object obj)
442442
{
443443
if (_outToConsole)
444444
{
445-
Console.WriteLine(text);
445+
Console.WriteLine(obj);
446446
}
447447
else
448448
{
449-
_form.OutputText.Text += $"{text}{Environment.NewLine}";
449+
_form.OutputText.Text += $"{obj}{Environment.NewLine}";
450450
}
451451
}
452452

0 commit comments

Comments
 (0)