Browse Source

Removed a hard-coded "__".

Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
pull/46/head
Dimitar Dobrev 13 years ago
parent
commit
fe1387331d
  1. 5
      src/Generator/Generators/CSharp/CSharpMarshal.cs

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

@ -206,9 +206,10 @@ namespace CppSharp.Generators.CSharp @@ -206,9 +206,10 @@ namespace CppSharp.Generators.CSharp
string instance = Context.ReturnVarName;
if (ctx.Kind == CSharpMarshalKind.NativeField)
{
string copy = Helpers.GeneratedIdentifier("copy");
Context.SupportBefore.WriteLine(
"var __copy = new global::System.IntPtr(&{0});", instance);
instance = "__copy";
"var {0} = new global::System.IntPtr(&{1});", copy, instance);
instance = copy;
}
if (@class.IsRefType)

Loading…
Cancel
Save