pythonless

This commit is contained in:
Vitor Santos Costa
2018-03-19 14:26:29 +00:00
parent b54439d909
commit 927a43933c
4 changed files with 11 additions and 5 deletions

View File

@@ -10,7 +10,7 @@ extern "C" {
#include "android/log.h"
#endif
#if 1
#if YAP_PYTHON
#include "Python.h"
#endif
@@ -457,9 +457,11 @@ bool YAPEngine::call(YAPPredicate ap, YAPTerm ts[]) {
bool YAPEngine::mgoal(Term t, Term tmod) {
sigjmp_buf buf, *oldp = LOCAL_RestartEnv;
PyThreadState *_save;
#if YAP_PYTHON
//PyThreadState *_save;
// _save = PyEval_SaveThread();
#endif
try {
CACHE_REGS
BACKUP_MACHINE_REGS();