mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-10 14:00:21 +02:00
(scm_make_continuation): Do not retain the throw_value when the
continuation is invoked.
This commit is contained in:
parent
762e289af5
commit
3c468478d8
1 changed files with 6 additions and 2 deletions
|
@ -183,14 +183,18 @@ scm_make_continuation (int *first)
|
|||
}
|
||||
else
|
||||
{
|
||||
SCM ret = continuation->throw_value;
|
||||
*first = 0;
|
||||
return continuation->throw_value;
|
||||
continuation->throw_value = SCM_BOOL_F;
|
||||
return ret;
|
||||
}
|
||||
#else /* !__ia64__ */
|
||||
if (setjmp (continuation->jmpbuf))
|
||||
{
|
||||
SCM ret = continuation->throw_value;
|
||||
*first = 0;
|
||||
return continuation->throw_value;
|
||||
continuation->throw_value = SCM_BOOL_F;
|
||||
return ret;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue