Browse Source

Use the scope resolution operator when referring to native names.

pull/34/merge
triton 12 years ago
parent
commit
0e7f53fb18
  1. 2
      src/Generator/Generators/CLI/CLIMarshal.cs

2
src/Generator/Generators/CLI/CLIMarshal.cs

@ -418,7 +418,7 @@ namespace CppSharp.Generators.CLI @@ -418,7 +418,7 @@ namespace CppSharp.Generators.CLI
PrimitiveType primitive;
if (decl.Type.Desugar().IsPrimitiveType(out primitive))
{
Context.Return.Write("({0})", typedef.Declaration.Name);
Context.Return.Write("(::{0})", typedef.Declaration.QualifiedOriginalName);
}
return decl.Type.Visit(this);

Loading…
Cancel
Save