Add back CallingConvention.Cdecl to PInvokes.

internals
Eric Mellino 6 years ago
parent 068f45ba3e
commit 7a31d16cc1
  1. 4
      src/CodeGenerator/Program.cs
  2. 1002
      src/ImGui.NET/Generated/ImGuiNative.gen.cs
  3. 2
      src/ImGui.NET/ImGui.NET.csproj

@ -461,12 +461,12 @@ namespace CodeGenerator
if (isUdtVariant)
{
writer.WriteLine($"[DllImport(\"cimgui\", EntryPoint = \"{exportedName}\")]");
writer.WriteLine($"[DllImport(\"cimgui\", CallingConvention = CallingConvention.Cdecl, EntryPoint = \"{exportedName}\")]");
}
else
{
writer.WriteLine("[DllImport(\"cimgui\")]");
writer.WriteLine("[DllImport(\"cimgui\", CallingConvention = CallingConvention.Cdecl)]");
}
writer.WriteLine($"public static extern {ret} {methodName}({parameters});");
}

File diff suppressed because it is too large Load Diff

@ -8,7 +8,7 @@
<DebugType>portable</DebugType>
<AssemblyName>ImGui.NET</AssemblyName>
<PackageId>ImGui.NET</PackageId>
<PackagePrereleaseIdentifier>-beta0</PackagePrereleaseIdentifier>
<PackagePrereleaseIdentifier>-beta1</PackagePrereleaseIdentifier>
<PackageVersion>$(AssemblyVersion)$(PackagePrereleaseIdentifier)</PackageVersion>
<PackageTags>ImGui ImGui.NET Immediate Mode GUI</PackageTags>
<PackageProjectUrl>https://github.com/mellinoe/imgui.net</PackageProjectUrl>

Loading…
Cancel
Save