Browse Source

Explicitly define ASTContext else the declaration will not export symbols.

pull/224/head
triton 12 years ago
parent
commit
678639acdc
  1. 2
      src/CppParser/AST.cpp
  2. 1
      src/CppParser/AST.h

2
src/CppParser/AST.cpp

@ -447,6 +447,8 @@ ClassTemplate::FindPartialSpecialization(TemplateSpecializationType type)
return 0; return 0;
} }
ASTContext::ASTContext() {}
TranslationUnit* ASTContext::FindOrCreateModule(std::string File) TranslationUnit* ASTContext::FindOrCreateModule(std::string File)
{ {
// Clean up the file path. // Clean up the file path.

1
src/CppParser/AST.h

@ -702,6 +702,7 @@ struct CS_API NativeLibrary
struct CS_API ASTContext struct CS_API ASTContext
{ {
ASTContext();
TranslationUnit* FindOrCreateModule(std::string File); TranslationUnit* FindOrCreateModule(std::string File);
VECTOR(TranslationUnit*, TranslationUnits) VECTOR(TranslationUnit*, TranslationUnits)
}; };

Loading…
Cancel
Save