Enhanced version

This commit is contained in:
notoria
2020-05-01 16:46:31 +02:00
parent b911d2fda4
commit 6ae7ae0210
4 changed files with 14 additions and 6 deletions

View File

@@ -3515,6 +3515,15 @@ impl MachineState {
unreachable!()
}
}
&SystemClauseType::ScryerPrologVersion => {
use crate::git_version::git_version;
let version = self[temp_v!(1)];
let buffer =
git_version!(cargo_prefix = "cargo:", fallback = "unknown");
let chars = buffer.chars().map(|c| Addr::Char(c));
let result = Addr::HeapCell(self.heap.to_list(chars));
self.unify(version, result);
}
};
return_from_clause!(self.last_call, self)