recursive throw

This commit is contained in:
Vitor Santos Costa 2018-06-17 10:44:38 +01:00
parent d92191874a
commit 4fefb762f2

View File

@ -962,10 +962,11 @@ yap_error_descriptor_t *Yap_GetException(yap_error_descriptor_t *i) {
void Yap_PrintException(void) { printErr(LOCAL_ActiveError); }
bool Yap_RaiseException(void) {
if (LOCAL_CommittedError == NULL ||
LOCAL_CommittedError->errorNo == YAP_NO_ERROR)
if (LOCAL_ActiveError == NULL ||
LOCAL_ActiveError->errorNo == YAP_NO_ERROR)
return false;
return Yap_JumpToEnv();
Yap_RestartYap(5);
//return Yap_JumpToEnv();
}
bool Yap_ResetException(yap_error_descriptor_t *i) {