mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-21 17:28:00 +02:00
Add universal Write and WriteLine with no params
This commit is contained in:
parent
15eebce64a
commit
6afce5b179
1 changed files with 12 additions and 0 deletions
|
@ -101,6 +101,13 @@ namespace System
|
|||
Write(str);
|
||||
}
|
||||
|
||||
public static void Write(Object obj)
|
||||
{
|
||||
String str = scope String();
|
||||
obj.ToString(str);
|
||||
Write(str);
|
||||
}
|
||||
|
||||
public static void WriteLine(String line)
|
||||
{
|
||||
//PrintF("Hey!");
|
||||
|
@ -120,5 +127,10 @@ namespace System
|
|||
obj.ToString(str);
|
||||
WriteLine(str);
|
||||
}
|
||||
|
||||
[Inline]
|
||||
public static void WriteLine(){
|
||||
Out.Write("\n").IgnoreError();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue