Browse Source

Moved the ClangParser class to the CppSharp::Parser namespace.

pull/86/head
triton 12 years ago
parent
commit
27a28d49e3
  1. 10
      src/Parser/Main.cpp

10
src/Parser/Main.cpp

@ -8,6 +8,8 @@
#include "Parser.h" #include "Parser.h"
#include "Interop.h" #include "Interop.h"
namespace CppSharp { namespace Parser {
public ref class ClangParser public ref class ClangParser
{ {
public: public:
@ -19,7 +21,7 @@ public:
using namespace clix; using namespace clix;
std::string File = marshalString<E_UTF8>(Opts->FileName); std::string File = marshalString<E_UTF8>(Opts->FileName);
Parser parser(Opts); ::Parser parser(Opts);
return parser.ParseHeader(File); return parser.ParseHeader(File);
} }
@ -30,7 +32,9 @@ public:
using namespace clix; using namespace clix;
std::string File = marshalString<E_UTF8>(Opts->FileName); std::string File = marshalString<E_UTF8>(Opts->FileName);
Parser parser(Opts); ::Parser parser(Opts);
return parser.ParseLibrary(File); return parser.ParseLibrary(File);
} }
}; };
} }
Loading…
Cancel
Save