recursive throw
This commit is contained in:
parent
d92191874a
commit
4fefb762f2
@ -962,10 +962,11 @@ yap_error_descriptor_t *Yap_GetException(yap_error_descriptor_t *i) {
|
|||||||
void Yap_PrintException(void) { printErr(LOCAL_ActiveError); }
|
void Yap_PrintException(void) { printErr(LOCAL_ActiveError); }
|
||||||
|
|
||||||
bool Yap_RaiseException(void) {
|
bool Yap_RaiseException(void) {
|
||||||
if (LOCAL_CommittedError == NULL ||
|
if (LOCAL_ActiveError == NULL ||
|
||||||
LOCAL_CommittedError->errorNo == YAP_NO_ERROR)
|
LOCAL_ActiveError->errorNo == YAP_NO_ERROR)
|
||||||
return false;
|
return false;
|
||||||
return Yap_JumpToEnv();
|
Yap_RestartYap(5);
|
||||||
|
//return Yap_JumpToEnv();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Yap_ResetException(yap_error_descriptor_t *i) {
|
bool Yap_ResetException(yap_error_descriptor_t *i) {
|
||||||
|
Reference in New Issue
Block a user