Mark status when parsing is terminated

This commit is contained in:
Thomas Krijnen
2024-09-23 15:24:28 +02:00
parent e4d1118124
commit a9ca4e7366
2 changed files with 3 additions and 1 deletions
+2 -1
View File
@@ -42,7 +42,8 @@ class IFC_PARSE_API file_open_status {
SUCCESS,
READ_ERROR,
NO_HEADER,
UNSUPPORTED_SCHEMA
UNSUPPORTED_SCHEMA,
INVALID_SYNTAX
};
private:
+1
View File
@@ -1378,6 +1378,7 @@ void IfcFile::initialize_(IfcParse::IfcSpfStream* s) {
}
if (next_token.type == Token_NONE) {
good_ = file_open_status::INVALID_SYNTAX;
break;
}