Browse Source

Added an IMangledDecl interface to mangle-able declarations.

pull/1/head
triton 12 years ago
parent
commit
cfc4783420
  1. 5
      src/Bridge/Declaration.cs
  2. 3
      src/Bridge/Function.cs
  3. 2
      src/Bridge/Variable.cs

5
src/Bridge/Declaration.cs

@ -20,6 +20,11 @@ namespace CppSharp @@ -20,6 +20,11 @@ namespace CppSharp
string Name { get; set; }
}
public interface IMangledDecl
{
string Mangled { get; set; }
}
[Flags]
public enum IgnoreFlags
{

3
src/Bridge/Function.cs

@ -55,7 +55,7 @@ namespace CppSharp @@ -55,7 +55,7 @@ namespace CppSharp
}
}
public class Function : Declaration, ITypedDecl
public class Function : Declaration, ITypedDecl, IMangledDecl
{
public Function()
{
@ -101,7 +101,6 @@ namespace CppSharp @@ -101,7 +101,6 @@ namespace CppSharp
}
}
// Mangled name
public string Mangled { get; set; }
public override T Visit<T>(IDeclVisitor<T> visitor)

2
src/Bridge/Variable.cs

@ -1,7 +1,7 @@ @@ -1,7 +1,7 @@

namespace CppSharp
{
public class Variable : Declaration, ITypedDecl
public class Variable : Declaration, ITypedDecl, IMangledDecl
{
public override T Visit<T>(IDeclVisitor<T> visitor)
{

Loading…
Cancel
Save