Fix C parser crashing on #endif at EOF
This commit is contained in:
parent
5af662a49e
commit
600af6dc72
1 changed files with 4 additions and 4 deletions
|
@ -467,8 +467,8 @@ namespace fex
|
|||
|
||||
while (index_ < tokens_.size())
|
||||
{
|
||||
while (Next().type() != Token::Type::kConst)
|
||||
;
|
||||
if (Next().type() != Token::Type::kConst)
|
||||
continue;
|
||||
Next(); // struct
|
||||
|
||||
std::string type = Next().string_value();
|
||||
|
@ -497,8 +497,8 @@ namespace fex
|
|||
|
||||
while (index_ < tokens_.size())
|
||||
{
|
||||
while (Next().type() != Token::Type::kConst)
|
||||
;
|
||||
if (Next().type() != Token::Type::kConst)
|
||||
continue;
|
||||
Next(); // struct
|
||||
|
||||
Next(); // type
|
||||
|
|
Loading…
Reference in a new issue