Browse Source

Fixed the generation of abstract impl calls in property setters.

Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
incorrect_trunit_test
Dimitar Dobrev 11 years ago
parent
commit
42828f35fd
  1. 7
      src/Generator/Generators/CSharp/CSharpTextTemplate.cs
  2. 2
      tests/CSharpTemp/CSharpTemp.h

7
src/Generator/Generators/CSharp/CSharpTextTemplate.cs

@ -807,7 +807,9 @@ namespace CppSharp.Generators.CSharp @@ -807,7 +807,9 @@ namespace CppSharp.Generators.CSharp
if (function.SynthKind == FunctionSynthKind.AbstractImplCall)
{
GenerateAbstractImplCall(function, @class);
string delegateId;
Write(GetAbstractCallDelegate(function, @class, out delegateId));
GenerateFunctionCall(delegateId, new List<Parameter> { param }, function);
}
else
{
@ -820,8 +822,7 @@ namespace CppSharp.Generators.CSharp @@ -820,8 +822,7 @@ namespace CppSharp.Generators.CSharp
}
else
{
var parameters = new List<Parameter> { param };
GenerateInternalFunctionCall(function, parameters);
GenerateInternalFunctionCall(function, new List<Parameter> { param });
}
}
else

2
tests/CSharpTemp/CSharpTemp.h

@ -96,7 +96,7 @@ class DLL_API AbstractProprietor @@ -96,7 +96,7 @@ class DLL_API AbstractProprietor
{
public:
virtual int getValue();
virtual void setValue(int value) = 0;
virtual void setValue(int newValue) = 0;
virtual long prop() = 0;
virtual void setProp(long prop);

Loading…
Cancel
Save