mirror of
https://github.com/huderlem/porymap.git
synced 2026-04-21 00:57:33 -05:00
Fix C parser crashing on #endif at EOF
This commit is contained in:
parent
5af662a49e
commit
600af6dc72
|
|
@ -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 New Issue
Block a user