From 974e3e192bf57071f59228cbf75b79e941bc6dc3 Mon Sep 17 00:00:00 2001 From: Ari Vuollet Date: Mon, 1 Apr 2024 16:03:34 +0300 Subject: [PATCH] Include original type of the fields in blittable struct in comments --- Source/Tools/Flax.Build/Bindings/BindingsGenerator.CSharp.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Tools/Flax.Build/Bindings/BindingsGenerator.CSharp.cs b/Source/Tools/Flax.Build/Bindings/BindingsGenerator.CSharp.cs index c4cefdacc..aefeeac26 100644 --- a/Source/Tools/Flax.Build/Bindings/BindingsGenerator.CSharp.cs +++ b/Source/Tools/Flax.Build/Bindings/BindingsGenerator.CSharp.cs @@ -1585,7 +1585,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