From 872cd1c8129647f02d5855a8fdd06879a3840f79 Mon Sep 17 00:00:00 2001 From: triton Date: Fri, 13 Dec 2013 16:22:33 +0000 Subject: [PATCH] Add the method to the marshaling context when handling value type ctors. This fixes a marshaling regression with extra erroneous "&" which was caused by the fix done a couple days ago. --- src/Generator/Generators/CLI/CLISourcesTemplate.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Generator/Generators/CLI/CLISourcesTemplate.cs b/src/Generator/Generators/CLI/CLISourcesTemplate.cs index f81871f0..370d2092 100644 --- a/src/Generator/Generators/CLI/CLISourcesTemplate.cs +++ b/src/Generator/Generators/CLI/CLISourcesTemplate.cs @@ -640,6 +640,7 @@ namespace CppSharp.Generators.CLI { var ctx = new MarshalContext(Driver) { + Function = method, Parameter = param, ArgName = param.Name, ParameterIndex = paramIndex++