mirror of
https://github.com/huderlem/porymap.git
synced 2026-08-12 20:05:55 -05:00
Fix C parser crashing on #endif at EOF
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user