From 8540e48bcf392274c00f874445954b7507d86f4b Mon Sep 17 00:00:00 2001 From: triton Date: Fri, 18 Jan 2013 17:03:35 +0000 Subject: [PATCH] Improved the CLI type printing of typedef types. --- src/Generator/Generators/CLI/CLIHelpers.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Generator/Generators/CLI/CLIHelpers.cs b/src/Generator/Generators/CLI/CLIHelpers.cs index e459fe45..72f3120a 100644 --- a/src/Generator/Generators/CLI/CLIHelpers.cs +++ b/src/Generator/Generators/CLI/CLIHelpers.cs @@ -156,10 +156,10 @@ namespace Cxxi.Generators.CLI } FunctionType func; - if (typedef.Declaration.Type.IsPointerTo(out func)) + if (decl.Type.IsPointerTo(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 public string VisitTypedefDecl(TypedefDecl typedef) { - throw new NotImplementedException(); + return typedef.Name; } public string VisitEnumDecl(Enumeration @enum)