From 7178d169e315de63df5b3c7a818c37cff7ac9e05 Mon Sep 17 00:00:00 2001 From: TermiNexus Date: Tue, 18 Aug 2026 09:25:36 +0800 Subject: [PATCH] =?UTF-8?q?chore(gentype):=20ctypedef=20=E6=A3=80=E6=9F=A5?= =?UTF-8?q?=E5=8A=A0=20attr=20=E8=AF=BB=E5=8F=96=E6=96=AD=E7=82=B9?= =?UTF-8?q?=EF=BC=8C=E5=AF=B9=E6=AF=94=E6=9E=84=E9=80=A0=E4=B8=8E=E8=AF=BB?= =?UTF-8?q?=E5=8F=96=E5=9C=B0=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App/lib/core/Gen/TypeGenCType.vp | 1 + 1 file changed, 1 insertion(+) diff --git a/App/lib/core/Gen/TypeGenCType.vp b/App/lib/core/Gen/TypeGenCType.vp index fe21f8d..a772b07 100644 --- a/App/lib/core/Gen/TypeGenCType.vp +++ b/App/lib/core/Gen/TypeGenCType.vp @@ -142,6 +142,7 @@ class TypeGenCType(TypeGenBase.TypeGenBase): # TypeGenCType 直接访问 at.attr 可能按 stub 类型生成错误 GEP, # 读垃圾地址 → strcmp 0xC0000005 崩溃,stdint.vp 根因)。 at_attr_v: str = ast.attribute_get_attr(at) + stdio.printf("[DIAG] ctypedef 检查: attr=%llu\n", t.CUInt64T(at_attr_v)) if at_attr_v is None: return 0 if string.strcmp(at_attr_v, "CTypedef") != 0: