Use "resource_error(threads)" instead of "resource_error(max_threads)" for compatibility with SWI-Prolog, XSB, and the latest ISO Prolog Threads DTR.

git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@2162 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
This commit is contained in:
pmoura
2008-03-25 01:04:27 +00:00
parent 47d7eee66d
commit fa73e89807
2 changed files with 3 additions and 3 deletions

View File

@@ -1334,7 +1334,7 @@ Yap_Error(yap_error_number type, Term where, char *format,...)
Term ti[1];
i = strlen(tmpbuf);
ti[0] = MkAtomTerm(Yap_LookupAtom("max_threads"));
ti[0] = MkAtomTerm(Yap_LookupAtom("threads"));
nt[0] = Yap_MkApplTerm(Yap_MkFunctor(Yap_LookupAtom("resource_error"),1), 1, ti);
tp = tmpbuf+i;
psize -= i;