From 78d767bf21a14f9eda7bbfb0a49bbb3bb9d13bfa Mon Sep 17 00:00:00 2001 From: zzy <2450266535@qq.com> Date: Fri, 14 Aug 2026 20:42:11 +0800 Subject: [PATCH] =?UTF-8?q?stage0=20=E4=BF=AE=E5=A4=8Dwindows=E5=87=BD?= =?UTF-8?q?=E6=95=B0=E6=B2=A1=E6=9C=89=E8=BF=9B=E5=85=A5=E5=AE=8F=E5=8C=85?= =?UTF-8?q?=E8=A3=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- stage0/spl_vm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stage0/spl_vm.c b/stage0/spl_vm.c index 1193abe..f7d0db2 100644 --- a/stage0/spl_vm.c +++ b/stage0/spl_vm.c @@ -429,6 +429,7 @@ static int spl_type_size(spl_type_t t) { PUSH(_r); \ } while (0) +#ifdef _WIN32 // 辅助函数:将异常代码转为可读字符串 const char *ExceptionCodeToString(DWORD code) { switch (code) { @@ -478,7 +479,6 @@ const char *ExceptionCodeToString(DWORD code) { } // 全局未处理异常过滤器 -#ifdef _WIN32 LONG WINAPI UnhandledExceptionFilterImpl(EXCEPTION_POINTERS *pExceptionInfo) { // 获取异常记录和上下文 PEXCEPTION_RECORD record = pExceptionInfo->ExceptionRecord;