Browse Source

Fixed a bug that caused the generation of the uncompilable expression "&*IntPtr".

Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
pull/51/head
Dimitar Dobrev 12 years ago
parent
commit
0f5e27f939
  1. 1
      src/Generator/Generators/CSharp/CSharpMarshal.cs

1
src/Generator/Generators/CSharp/CSharpMarshal.cs

@ -243,6 +243,7 @@ namespace CppSharp.Generators.CSharp
} }
else else
{ {
instance = instance.Trim('*');
Context.SupportBefore.WriteLine( Context.SupportBefore.WriteLine(
"CppSharp.Runtime.Helpers.memcpy({0}, new IntPtr(&{1}), new UIntPtr({2}));", "CppSharp.Runtime.Helpers.memcpy({0}, new IntPtr(&{1}), new UIntPtr({2}));",
instanceName, instance, @class.Layout.Size); instanceName, instance, @class.Layout.Size);

Loading…
Cancel
Save