continuation.
(tail_call): Call return-hook before a proper tail call.
scm_wrong_num_args (ac);
/* Reinstate the continuation */
+ VM_RETURN_HOOK ();
SCM_VM_REINSTATE_CONT (vmp, ac);
LOAD ();
POP (ac); /* return value */
- VM_RETURN_HOOK ();
NEXT;
}
/* FIXME: Must remove the last frame.
FIXME: We need to move arguments before that. */
SCM *last_fp = fp;
+ VM_RETURN_HOOK ();
VM_NEW_FRAME (fp, ac,
SCM_VM_FRAME_DYNAMIC_LINK (last_fp),
SCM_VM_FRAME_STACK_POINTER (last_fp),