correct call_residue_vars/3 using new copy_term_3 (#1239)

This commit is contained in:
Mark Thom
2023-03-12 14:14:29 -06:00
parent 3a522f3c98
commit 9b35a316c9
5 changed files with 42 additions and 11 deletions

View File

@@ -469,6 +469,11 @@ impl HeapCellValue {
)
}
#[inline]
pub fn is_attr_var(self) -> bool {
self.get_tag() == HeapCellValueTag::AttrVar
}
#[inline]
pub(crate) fn as_var(self) -> Option<Ref> {
read_heap_cell!(self,