mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-11 02:02:22 +00:00
Mark status when parsing is terminated
This commit is contained in:
@@ -42,7 +42,8 @@ class IFC_PARSE_API file_open_status {
|
||||
SUCCESS,
|
||||
READ_ERROR,
|
||||
NO_HEADER,
|
||||
UNSUPPORTED_SCHEMA
|
||||
UNSUPPORTED_SCHEMA,
|
||||
INVALID_SYNTAX
|
||||
};
|
||||
|
||||
private:
|
||||
|
||||
@@ -1378,6 +1378,7 @@ void IfcFile::initialize_(IfcParse::IfcSpfStream* s) {
|
||||
}
|
||||
|
||||
if (next_token.type == Token_NONE) {
|
||||
good_ = file_open_status::INVALID_SYNTAX;
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user