Include original type of the fields in blittable struct in comments

This commit is contained in:
2024-04-01 16:03:34 +03:00
parent a49b398c7f
commit 495b6d6abc

View File

@@ -1577,7 +1577,7 @@ namespace Flax.Build.Bindings
}
//else if (type == "Guid")
// type = "GuidNative";
structContents.Append(type).Append(' ').Append(fieldInfo.Name).Append(';').AppendLine();
structContents.Append($"{type} {fieldInfo.Name};").Append(type == "IntPtr" ? $" // {originalType}" : "").AppendLine();
}
// Generate struct constructor/getter and deconstructor/setter function