support for making sure exceptions are reset when they should be reset (obs from Nuno Fonseca, #159)

This commit is contained in:
Vítor Manuel de Morais Santos Costa
2009-12-03 17:48:25 +00:00
parent 71e4d73a75
commit 1176f71f3a
7 changed files with 16 additions and 33 deletions

View File

@@ -1939,7 +1939,7 @@ YAP_GoalHasException(Term *t)
X_API void
YAP_ClearExceptions(void)
{
Yap_DeleteGlobal(AtomCatch);
Yap_ResetExceptionTerm();
EX = 0L;
UncaughtThrow = FALSE;
}