fix handling of cut_c in SWI packages.
This commit is contained in:
parent
6617a63b7e
commit
10f84228bc
@ -1538,6 +1538,8 @@ YAP_ExecuteFirst(PredEntry *pe, CPredicate exec_code)
|
|||||||
BallTerm = EX;
|
BallTerm = EX;
|
||||||
EX = NULL;
|
EX = NULL;
|
||||||
if ((t = Yap_GetException())) {
|
if ((t = Yap_GetException())) {
|
||||||
|
cut_c_pop();
|
||||||
|
B = B->cp_b;
|
||||||
Yap_JumpToEnv(t);
|
Yap_JumpToEnv(t);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
@ -1577,6 +1579,8 @@ YAP_ExecuteNext(PredEntry *pe, CPredicate exec_code)
|
|||||||
BallTerm = EX;
|
BallTerm = EX;
|
||||||
EX = NULL;
|
EX = NULL;
|
||||||
if ((t = Yap_GetException())) {
|
if ((t = Yap_GetException())) {
|
||||||
|
cut_c_pop();
|
||||||
|
B = B->cp_b;
|
||||||
Yap_JumpToEnv(t);
|
Yap_JumpToEnv(t);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user