Clarify a no-content loop.

This commit is contained in:
Unknown W. Brackets 2014-04-27 21:08:21 -07:00
parent 1fb8060263
commit bdb08c58d3
1 changed files with 1 additions and 1 deletions

View File

@ -160,7 +160,7 @@ bool CompilePPUProgram::IsEnd() const { return p >= (s64)m_asm.length(); }
bool CompilePPUProgram::IsEndLn(const char c) const { return c == '\n' || p - 1 >= (s64)m_asm.length(); }
char CompilePPUProgram::NextChar() { return *m_asm.substr(p++, 1).c_str(); }
void CompilePPUProgram::NextLn() { while( !IsEndLn(NextChar()) ); if(!IsEnd()) m_line++; }
void CompilePPUProgram::NextLn() { while( !IsEndLn(NextChar()) ) continue; if(!IsEnd()) m_line++; }
void CompilePPUProgram::EndLn()
{
NextLn();