Browse Source

Fixed the build.

pull/266/merge
triton 12 years ago
parent
commit
fd1dc49745
  1. 12
      src/CppParser/Bindings/CSharp/i686-pc-win32/AST.cs
  2. 4
      src/Parser/Parser.cpp

12
src/CppParser/Bindings/CSharp/i686-pc-win32/AST.cs

@ -6359,7 +6359,7 @@ namespace CppSharp
public void* OriginalPtr; public void* OriginalPtr;
[FieldOffset(120)] [FieldOffset(120)]
public CppSharp.Parser.AST.MacroLocation Location; public CppSharp.Parser.AST.MacroLocation MacroLocation;
[SuppressUnmanagedCodeSecurity] [SuppressUnmanagedCodeSecurity]
[DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.ThisCall, [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.ThisCall,
@ -6404,18 +6404,18 @@ namespace CppSharp
base.Dispose(disposing); base.Dispose(disposing);
} }
public CppSharp.Parser.AST.MacroLocation Location public CppSharp.Parser.AST.MacroLocation MacroLocation
{ {
get get
{ {
var __ptr = (Internal*)__Instance.ToPointer(); var __ptr = (Internal*)__Instance.ToPointer();
return __ptr->Location; return __ptr->MacroLocation;
} }
set set
{ {
var __ptr = (Internal*)__Instance.ToPointer(); var __ptr = (Internal*)__Instance.ToPointer();
__ptr->Location = value; __ptr->MacroLocation = value;
} }
} }
} }
@ -6456,7 +6456,7 @@ namespace CppSharp
public void* OriginalPtr; public void* OriginalPtr;
[FieldOffset(120)] [FieldOffset(120)]
public CppSharp.Parser.AST.MacroLocation Location; public CppSharp.Parser.AST.MacroLocation MacroLocation;
[SuppressUnmanagedCodeSecurity] [SuppressUnmanagedCodeSecurity]
[DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.ThisCall, [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.ThisCall,
@ -6565,7 +6565,7 @@ namespace CppSharp
public void* OriginalPtr; public void* OriginalPtr;
[FieldOffset(120)] [FieldOffset(120)]
public CppSharp.Parser.AST.MacroLocation Location; public CppSharp.Parser.AST.MacroLocation MacroLocation;
[FieldOffset(148)] [FieldOffset(148)]
public global::System.IntPtr Definition; public global::System.IntPtr Definition;

4
src/Parser/Parser.cpp

@ -2389,8 +2389,8 @@ void Parser::HandlePreprocessedEntities(CppSharp::AST::Declaration^ Decl,
auto Entity = WalkPreprocessedEntity(Decl, PPEntity); auto Entity = WalkPreprocessedEntity(Decl, PPEntity);
if (!Entity) continue; if (!Entity) continue;
if (Entity->Location == CppSharp::AST::MacroLocation::Unknown) if (Entity->MacroLocation == CppSharp::AST::MacroLocation::Unknown)
Entity->Location = macroLocation; Entity->MacroLocation = macroLocation;
} }
} }

Loading…
Cancel
Save