From cde619bf4cef048a5959fe6ca4ca4f905c1240be Mon Sep 17 00:00:00 2001 From: triton Date: Sun, 16 Sep 2012 00:22:28 +0100 Subject: [PATCH] Added support for typedef declarations. --- src/Bridge/Declaration.cs | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/src/Bridge/Declaration.cs b/src/Bridge/Declaration.cs index 176b1e94..c30588ac 100644 --- a/src/Bridge/Declaration.cs +++ b/src/Bridge/Declaration.cs @@ -1,7 +1,4 @@ -using System; -using System.Collections.Generic; - -namespace Cxxi +namespace Cxxi { /// /// Represents a C++ declaration. @@ -15,7 +12,7 @@ namespace Cxxi public string BriefComment; // Namespace the type is declared in. - public Namespace Namespace; + //public Namespace Namespace; // Wether the type should be ignored. public bool Ignore; @@ -38,6 +35,15 @@ namespace Cxxi } } + /// + /// Represents a type definition in C++. + /// + public class Typedef : Declaration + { + /// Type defined. + public Type Type; + } + /// /// Represents a C preprocessor macro definition. ///