aboutsummaryrefslogtreecommitdiff
path: root/c/defs.h
diff options
context:
space:
mode:
Diffstat (limited to 'c/defs.h')
-rw-r--r--c/defs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/c/defs.h b/c/defs.h
index f57989c..766682e 100644
--- a/c/defs.h
+++ b/c/defs.h
@@ -110,7 +110,7 @@ int Pl(const char *szMod, const char *szPred, T... args)
int iArity = Countv(0, args...);
term_t t = PL_new_term_refs(iArity);
if (!PlPutv(t, args...)) return 0;
- if (!PL_call_predicate(NULL, PL_Q_NORMAL, PL_predicate(szPred, iArity, szMod), t))
+ if (!PL_call_predicate(NULL, PL_Q_CATCH_EXCEPTION, PL_predicate(szPred, iArity, szMod), t))
return 0;
if (!PlGetv(t, args...)) return 0;
return 1;