Browse Source

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.
pull/137/merge
triton 12 years ago
parent
commit
872cd1c812
  1. 1
      src/Generator/Generators/CLI/CLISourcesTemplate.cs

1
src/Generator/Generators/CLI/CLISourcesTemplate.cs

@ -640,6 +640,7 @@ namespace CppSharp.Generators.CLI
{ {
var ctx = new MarshalContext(Driver) var ctx = new MarshalContext(Driver)
{ {
Function = method,
Parameter = param, Parameter = param,
ArgName = param.Name, ArgName = param.Name,
ParameterIndex = paramIndex++ ParameterIndex = paramIndex++

Loading…
Cancel
Save