fix exception passing from SWI
This commit is contained in:
parent
0726597812
commit
44dccc00bb
@ -2265,8 +2265,8 @@ PL_discard_foreign_frame(fid_t f)
|
|||||||
LOCAL_execution = env->old;
|
LOCAL_execution = env->old;
|
||||||
ASP = LCL0-CurSlot;
|
ASP = LCL0-CurSlot;
|
||||||
B = B->cp_b;
|
B = B->cp_b;
|
||||||
EX = NULL;
|
//LOCAL_BallTerm = EX;
|
||||||
LOCAL_BallTerm = EX;
|
//EX = NULL;
|
||||||
free(env);
|
free(env);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2331,7 +2331,7 @@ X_API void PL_close_query(qid_t qi)
|
|||||||
{
|
{
|
||||||
CACHE_REGS
|
CACHE_REGS
|
||||||
EX = NULL;
|
EX = NULL;
|
||||||
if (EX && !(qi->flags & (PL_Q_CATCH_EXCEPTION|PL_Q_PASS_EXCEPTION))) {
|
if (EX && !(qi->flags & (PL_Q_CATCH_EXCEPTION))) {
|
||||||
EX = NULL;
|
EX = NULL;
|
||||||
}
|
}
|
||||||
/* need to implement backtracking here */
|
/* need to implement backtracking here */
|
||||||
|
Reference in New Issue
Block a user