Files
XCEngine/managed/XCEngine.ScriptCore/Debug.cs

35 lines
1.1 KiB
C#
Raw Normal View History

2026-04-05 02:26:21 +08:00
using System.Runtime.CompilerServices;
namespace XCEngine
{
public static class Debug
{
2026-04-05 02:26:21 +08:00
public static void Log(
string message,
[CallerFilePath] string file = "",
[CallerLineNumber] int line = 0,
[CallerMemberName] string member = "")
{
2026-04-05 02:26:21 +08:00
InternalCalls.Debug_Log(message ?? string.Empty, file ?? string.Empty, line, member ?? string.Empty);
}
2026-04-05 02:26:21 +08:00
public static void LogWarning(
string message,
[CallerFilePath] string file = "",
[CallerLineNumber] int line = 0,
[CallerMemberName] string member = "")
{
2026-04-05 02:26:21 +08:00
InternalCalls.Debug_LogWarning(message ?? string.Empty, file ?? string.Empty, line, member ?? string.Empty);
}
2026-04-05 02:26:21 +08:00
public static void LogError(
string message,
[CallerFilePath] string file = "",
[CallerLineNumber] int line = 0,
[CallerMemberName] string member = "")
{
2026-04-05 02:26:21 +08:00
InternalCalls.Debug_LogError(message ?? string.Empty, file ?? string.Empty, line, member ?? string.Empty);
}
}
}