merge
This commit is contained in:
@@ -6,6 +6,8 @@
|
||||
#ifndef _YAPDB_H
|
||||
#define _YAPDB_H
|
||||
|
||||
#include <YapInterface.h>
|
||||
|
||||
#define YAP_CPP_DB_INTERFACE 1
|
||||
|
||||
|
||||
@@ -70,7 +72,7 @@ class X_API YAPModuleProp : public YAPProp {
|
||||
|
||||
public:
|
||||
YAPModuleProp(YAPModule tmod) { m = Yap_GetModuleEntry(tmod.gt()); };
|
||||
YAPModuleProp() { CACHE_REGS m = Yap_GetModuleEntry(Yap_CurrentModule()); };
|
||||
YAPModuleProp() { m = Yap_GetModuleEntry(YAP_CurrentModule()); };
|
||||
virtual YAPModule module() { return YAPModule(m->AtomOfME); };
|
||||
};
|
||||
|
||||
|
@@ -94,7 +94,7 @@ public:
|
||||
/// should be a callable
|
||||
/// goal.
|
||||
inline YAPQuery(const char *s) : YAPPredicate(s, goal, names, (nts = &ARG1)) {
|
||||
__android_log_print(ANDROID_LOG_INFO, "YAPDroid", "got game %d",
|
||||
__android_log_print(ANDROID_LOG_INFO, "YAPDroid", "got game %ld",
|
||||
LOCAL_CurSlot);
|
||||
|
||||
openQuery();
|
||||
@@ -114,7 +114,7 @@ public:
|
||||
/// It i;
|
||||
///};
|
||||
/// build a query from a term
|
||||
YAPQuery(YAPTerm t) : YAPPredicate((goal = t.term()),(nts=Yap_XREGS+1)) {
|
||||
YAPQuery(YAPTerm t) : YAPPredicate((goal = t.term()), nts) {
|
||||
BACKUP_MACHINE_REGS();
|
||||
openQuery();
|
||||
names = TermNil ;
|
||||
|
Reference in New Issue
Block a user