mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-27 20:18:01 +02:00
Initial checkin
This commit is contained in:
parent
c74712dad9
commit
078564ac9e
3242 changed files with 1616395 additions and 0 deletions
27
IDE/src/util/BfLog.bf
Normal file
27
IDE/src/util/BfLog.bf
Normal file
|
@ -0,0 +1,27 @@
|
|||
using System;
|
||||
|
||||
namespace IDE.util
|
||||
{
|
||||
class BfLog
|
||||
{
|
||||
[StdCall, CLink]
|
||||
static extern void BfLog_Log(char8* str);
|
||||
|
||||
[StdCall, CLink]
|
||||
static extern void BfLog_LogDbg(char8* str);
|
||||
|
||||
public static void Log(StringView str, params Object[] strParams)
|
||||
{
|
||||
var fStr = scope String();
|
||||
fStr.AppendF(str, params strParams);
|
||||
BfLog_Log(fStr);
|
||||
}
|
||||
|
||||
public static void LogDbg(StringView str, params Object[] strParams)
|
||||
{
|
||||
var fStr = scope String();
|
||||
fStr.AppendF(str, params strParams);
|
||||
BfLog_LogDbg(fStr);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue