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;