2026-04-05 02:26:21 +08:00
|
|
|
using System.Runtime.CompilerServices;
|
|
|
|
|
|
2026-03-27 13:07:39 +08:00
|
|
|
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-03-27 13:07:39 +08:00
|
|
|
{
|
2026-04-05 02:26:21 +08:00
|
|
|
InternalCalls.Debug_Log(message ?? string.Empty, file ?? string.Empty, line, member ?? string.Empty);
|
2026-03-27 13:07:39 +08:00
|
|
|
}
|
|
|
|
|
|
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-03-27 13:07:39 +08:00
|
|
|
{
|
2026-04-05 02:26:21 +08:00
|
|
|
InternalCalls.Debug_LogWarning(message ?? string.Empty, file ?? string.Empty, line, member ?? string.Empty);
|
2026-03-27 13:07:39 +08:00
|
|
|
}
|
|
|
|
|
|
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-03-27 13:07:39 +08:00
|
|
|
{
|
2026-04-05 02:26:21 +08:00
|
|
|
InternalCalls.Debug_LogError(message ?? string.Empty, file ?? string.Empty, line, member ?? string.Empty);
|
2026-03-27 13:07:39 +08:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|