Skip to content

Commit 3d5e1ce

Browse files
committed
unity2019导出了Baselib,用到了System.UIntPtr类型对应c++的size_t
1 parent bbe2022 commit 3d5e1ce

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

BindGenerater/Generater/C/CTypeResolver.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,8 @@ public virtual string TypeName()
102102
return "uint8_t";
103103
case "SByte":
104104
return "int8_t";
105+
case "UIntPtr":
106+
return "size_t";
105107
}
106108

107109
return type.Name;

0 commit comments

Comments
 (0)