mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-22 12:57:57 +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,
|
SUCCESS,
|
||||||
READ_ERROR,
|
READ_ERROR,
|
||||||
NO_HEADER,
|
NO_HEADER,
|
||||||
UNSUPPORTED_SCHEMA
|
UNSUPPORTED_SCHEMA,
|
||||||
|
INVALID_SYNTAX
|
||||||
};
|
};
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|||||||
@@ -1378,6 +1378,7 @@ void IfcFile::initialize_(IfcParse::IfcSpfStream* s) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (next_token.type == Token_NONE) {
|
if (next_token.type == Token_NONE) {
|
||||||
|
good_ = file_open_status::INVALID_SYNTAX;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user