Browse Source

Fix C++ parser ambiguity in generation of C++ method identifiers by wrapping them in parens.

pull/1318/head
João Matos 5 years ago committed by João Matos
parent
commit
64a99cce08
  1. 2
      src/Generator/Generators/C/CppSources.cs

2
src/Generator/Generators/C/CppSources.cs

@ -408,7 +408,7 @@ namespace CppSharp.Generators.Cpp @@ -408,7 +408,7 @@ namespace CppSharp.Generators.Cpp
var returnType = function.ReturnType.Visit(CTypePrinter);
var name = function.Visit(CTypePrinter);
Write($"{returnType} {name}(");
Write($"{returnType} ({name})(");
for (var i = 0; i < function.Parameters.Count; ++i)
{

Loading…
Cancel
Save