This commit is contained in:
Vitor Santos Costa
2018-01-27 10:17:27 +00:00
parent 63e8e89dab
commit f3f524960c
23 changed files with 423 additions and 376 deletions

View File

@@ -854,12 +854,12 @@ void YAPEngine::doInit(YAP_file_type_t BootMode) {
#if YAP_PYTHON
do_init_python();
#endif
std::string s = "initialize_prolog";
YAPPredicate p = YAPPredicate(YAPAtomTerm(s));
YAPQuery initq = YAPQuery(YAPPredicate(p), nullptr);
if (initq.next()) {
initq.cut();
}
// std::string s = "initialize_prolog";
// YAPPredicate p = YAPPredicate(MkAtomTerm(Yap_LookupAtom(s.c_str())));
// YAPQuery initq = YAPQuery(YAPPredicate(p), nullptr);
// if (initq.next()) {
// initq.cut();
// }
CurrentModule = TermUser;
}