add error value to occurs_check prolog flag (#783)
This commit is contained in:
@@ -307,6 +307,7 @@ pub(crate) enum SystemClauseType {
|
||||
IsSTOEnabled,
|
||||
SetSTOAsUnify,
|
||||
SetNSTOAsUnify,
|
||||
SetSTOWithErrorAsUnify,
|
||||
HomeDirectory,
|
||||
}
|
||||
|
||||
@@ -593,6 +594,7 @@ impl SystemClauseType {
|
||||
&SystemClauseType::SetSTOAsUnify => clause_name!("$set_sto_as_unify"),
|
||||
&SystemClauseType::SetNSTOAsUnify => clause_name!("$set_nsto_as_unify"),
|
||||
&SystemClauseType::HomeDirectory => clause_name!("$home_directory"),
|
||||
&SystemClauseType::SetSTOWithErrorAsUnify => clause_name!("$set_sto_with_error_as_unify"),
|
||||
}
|
||||
}
|
||||
|
||||
@@ -839,6 +841,7 @@ impl SystemClauseType {
|
||||
("$is_sto_enabled", 1) => Some(SystemClauseType::IsSTOEnabled),
|
||||
("$set_sto_as_unify", 0) => Some(SystemClauseType::SetSTOAsUnify),
|
||||
("$set_nsto_as_unify", 0) => Some(SystemClauseType::SetNSTOAsUnify),
|
||||
("$set_sto_with_error_as_unify", 0) => Some(SystemClauseType::SetSTOWithErrorAsUnify),
|
||||
("$home_directory", 1) => Some(SystemClauseType::HomeDirectory),
|
||||
_ => None,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user