Fix bindings generation for in-built Char type used in Array

This commit is contained in:
Wojtek Figat
2023-03-22 14:19:52 +01:00
parent 2253b5713b
commit 4c1519ba1b
2 changed files with 5 additions and 4 deletions

View File

@@ -91,15 +91,15 @@ namespace Flax.Build.Bindings
},
{
new TypeInfo("Char"),
new LangType("char")
new LangType("char", "Char")
},
{
new TypeInfo("char"),
new LangType("sbyte")
new LangType("sbyte", "char")
},
{
new TypeInfo("void*"),
new LangType("IntPtr")
new LangType("IntPtr", "void*")
},
};

View File

@@ -12,9 +12,10 @@ namespace Flax.Build.Bindings
public override bool IsValueType => true;
public override bool IsPod => true;
public LangType(string name)
public LangType(string name, string nativeName = null)
{
Name = name;
NativeName = nativeName;
IsInBuild = true;
}