From 8a1e32e6a8c441f8358bd580c655d5ff48716fa0 Mon Sep 17 00:00:00 2001 From: Peter Mikkelsen Date: Fri, 16 Jul 2021 20:30:26 +0000 Subject: Handle -d option in prolog --- eval.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'eval.c') diff --git a/eval.c b/eval.c index f957553..09bb009 100644 --- a/eval.c +++ b/eval.c @@ -25,7 +25,7 @@ evalquery(Term *query) if(catcher) continue; - if(debug) + if(flagdebug) print("Working goal: %S:%S\n", module->name, prettyprint(goal, 0, 0, 0, nil)); Binding *bindings = nil; @@ -76,7 +76,7 @@ evalquery(Term *query) Backtrack: if(choicestack == nil) return 0; - if(debug) + if(flagdebug) print("Backtracking..\n"); Choicepoint *cp = choicestack; choicestack = cp->next; -- cgit v1.2.3