Commit 036a7356 by alokp@chromium.org

Do not return newline and number sign. They are for internal purposes only.

git-svn-id: https://angleproject.googlecode.com/svn/trunk@1048 736b8ea6-26fd-11df-bfd4-992fa37f6226
parent 78a35198
......@@ -18,7 +18,14 @@ bool Preprocessor::init(int count,
int Preprocessor::lex(Token* token)
{
return mLexer.lex(token);
int ret = mLexer.lex(token);
// TODO(alokp): Handle preprocessor directives. Ignore them for now.
while ((ret == '\n') || (ret == '#'))
{
ret = mLexer.lex(token);
}
return ret;
}
} // namespace pp
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment