From 0b0c795d7aff49a737b83795068a05106b0ff7db Mon Sep 17 00:00:00 2001 From: routersys Date: Thu, 2 Jul 2026 23:11:05 +0900 Subject: [PATCH] =?UTF-8?q?debug=5Fprint=20=E5=90=91=E3=81=91=E3=81=AE=20O?= =?UTF-8?q?utputDebugString=20=E5=87=BA=E5=8A=9B=E3=82=92=E8=BF=BD?= =?UTF-8?q?=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- LuaScript/Diagnostics/DebugOutput.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 LuaScript/Diagnostics/DebugOutput.cs diff --git a/LuaScript/Diagnostics/DebugOutput.cs b/LuaScript/Diagnostics/DebugOutput.cs new file mode 100644 index 0000000..589219a --- /dev/null +++ b/LuaScript/Diagnostics/DebugOutput.cs @@ -0,0 +1,12 @@ +using System.Runtime.InteropServices; + +namespace LuaScript.Diagnostics +{ + internal static partial class DebugOutput + { + [LibraryImport("kernel32.dll", EntryPoint = "OutputDebugStringW", StringMarshalling = StringMarshalling.Utf16)] + private static partial void OutputDebugStringW(string message); + + internal static void Write(string message) => OutputDebugStringW(message); + } +}