Browse Source

Improved the CLI type printing of typedef types.

pull/1/head
triton 13 years ago
parent
commit
8540e48bcf
  1. 6
      src/Generator/Generators/CLI/CLIHelpers.cs

6
src/Generator/Generators/CLI/CLIHelpers.cs

@ -156,10 +156,10 @@ namespace Cxxi.Generators.CLI @@ -156,10 +156,10 @@ namespace Cxxi.Generators.CLI
}
FunctionType func;
if (typedef.Declaration.Type.IsPointerTo<FunctionType>(out func))
if (decl.Type.IsPointerTo<FunctionType>(out func))
{
// TODO: Use SafeIdentifier()
return string.Format("{0}^", typedef.Declaration.Name);
return string.Format("{0}^", VisitDeclaration(decl));
}
return decl.Type.Visit(this);
@ -220,7 +220,7 @@ namespace Cxxi.Generators.CLI @@ -220,7 +220,7 @@ namespace Cxxi.Generators.CLI
public string VisitTypedefDecl(TypedefDecl typedef)
{
throw new NotImplementedException();
return typedef.Name;
}
public string VisitEnumDecl(Enumeration @enum)

Loading…
Cancel
Save