mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-03 05:20:16 +02:00
Add SCM_F_DYNSTACK_PROMPT_PUSH_NARGS prompt flag
* libguile/dynstack.h (scm_t_dynstack_prompt_flags): New flag, SCM_F_DYNSTACK_PROMPT_PUSH_NARGS, set if the continuation expects the number of args to be pushed on the top of the stack. * libguile/control.c (scm_c_abort): Only push nargs if requested. * libguile/eval.c (eval): * libguile/throw.c (pre_init_catch): * libguile/vm-i-system.c (prompt): Set SCM_F_DYNSTACK_PROMPT_PUSH_NARGS.
This commit is contained in:
parent
b7f10defe6
commit
c6cd692f08
5 changed files with 9 additions and 4 deletions
|
@ -1453,6 +1453,7 @@ VM_DEFINE_INSTRUCTION (87, prompt, "prompt", 4, 2, 0)
|
|||
SYNC_REGISTER ();
|
||||
/* Push the prompt onto the dynamic stack. */
|
||||
flags = escape_only_p ? SCM_F_DYNSTACK_PROMPT_ESCAPE_ONLY : 0;
|
||||
flags |= SCM_F_DYNSTACK_PROMPT_PUSH_NARGS;
|
||||
scm_dynstack_push_prompt (¤t_thread->dynstack, flags, k,
|
||||
fp, sp, ip + offset, ®isters);
|
||||
NEXT;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue