Browse Source

Changed the convention of inlined constructors and destructors to C.

This is necessary so that they match the C++ functions which wrap their native counterparts.

Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
pull/756/head 0.8.4
Dimitar Dobrev 8 years ago
parent
commit
6f367e1af4
  1. 6
      src/Generator/Passes/InlinesCodeGenerator.cs

6
src/Generator/Passes/InlinesCodeGenerator.cs

@ -62,7 +62,10 @@ namespace CppSharp.Passes @@ -62,7 +62,10 @@ namespace CppSharp.Passes
{
string wrapper = GetWrapper(method.TranslationUnit.Module);
if (Options.CheckSymbols)
{
method.Mangled = wrapper;
method.CallingConvention = CallingConvention.C;
}
int i = 0;
foreach (var param in method.Parameters.Where(
@ -110,7 +113,10 @@ namespace CppSharp.Passes @@ -110,7 +113,10 @@ namespace CppSharp.Passes
{
string wrapper = GetWrapper(method.TranslationUnit.Module);
if (Options.CheckSymbols)
{
method.Mangled = wrapper;
method.CallingConvention = CallingConvention.C;
}
bool isProtected = method.Access == AccessSpecifier.Protected;
string @namespace = method.Namespace.Visit(cppTypePrinter);

Loading…
Cancel
Save