stage0 修复windows函数没有进入宏包装

This commit is contained in:
zzy
2026-08-14 20:42:11 +08:00
parent 2a7db9e48c
commit 78d767bf21

View File

@@ -429,6 +429,7 @@ static int spl_type_size(spl_type_t t) {
PUSH(_r); \ PUSH(_r); \
} while (0) } while (0)
#ifdef _WIN32
// 辅助函数:将异常代码转为可读字符串 // 辅助函数:将异常代码转为可读字符串
const char *ExceptionCodeToString(DWORD code) { const char *ExceptionCodeToString(DWORD code) {
switch (code) { switch (code) {
@@ -478,7 +479,6 @@ const char *ExceptionCodeToString(DWORD code) {
} }
// 全局未处理异常过滤器 // 全局未处理异常过滤器
#ifdef _WIN32
LONG WINAPI UnhandledExceptionFilterImpl(EXCEPTION_POINTERS *pExceptionInfo) { LONG WINAPI UnhandledExceptionFilterImpl(EXCEPTION_POINTERS *pExceptionInfo) {
// 获取异常记录和上下文 // 获取异常记录和上下文
PEXCEPTION_RECORD record = pExceptionInfo->ExceptionRecord; PEXCEPTION_RECORD record = pExceptionInfo->ExceptionRecord;