mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-14 15:40:19 +02:00
error if given an unrewindable partial continuation
* libguile/vm-engine.c (vm_error_continuation_not_rewindable): * libguile/vm-i-system.c (partial-cont-call): * libguile/vm.h (SCM_VM_CONT_PARTIAL_P): (SCM_VM_CONT_REWINDABLE_P): Fix a bug in which we weren't checking if a partial continuation was actually rewindable.
This commit is contained in:
parent
35ac785286
commit
b3950ad6d8
3 changed files with 11 additions and 2 deletions
|
@ -233,6 +233,11 @@ VM_NAME (SCM vm, SCM program, SCM *argv, int nargs)
|
|||
finish_args = SCM_EOL;
|
||||
goto vm_error;
|
||||
|
||||
vm_error_continuation_not_rewindable:
|
||||
err_msg = scm_from_locale_string ("Unrewindable partial continuation");
|
||||
finish_args = scm_cons (finish_args, SCM_EOL);
|
||||
goto vm_error;
|
||||
|
||||
vm_error_bad_wide_string_length:
|
||||
err_msg = scm_from_locale_string ("VM: Bad wide string length: ~S");
|
||||
goto vm_error;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue