Browse Source

Fixed native function mangling scheme.

pull/146/merge
triton 12 years ago
parent
commit
51bff527e3
  1. 10
      src/Generator/Generators/CSharp/CSharpTextTemplate.cs

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

@ -2376,13 +2376,13 @@ namespace CppSharp.Generators.CSharp
if (method != null) if (method != null)
{ {
if (method.IsConstructor) if (method.IsConstructor)
functionName = "ctor_"; functionName = "ctor";
else if (method.IsCopyConstructor) else if (method.IsCopyConstructor)
functionName = "cctor_"; functionName = "cctor";
else if (method.IsDestructor) else if (method.IsDestructor)
functionName = "dtor_"; functionName = "dtor";
else
functionName += GetMethodIdentifier(method); functionName = GetMethodIdentifier(method);
} }
var identifier = SafeIdentifier(functionName); var identifier = SafeIdentifier(functionName);

Loading…
Cancel
Save