mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-04-30 03:40:34 +02:00
* throw.h: prototype for scm_exit_status.
* throw.c (scm_handle_by_message): if a 'quit is caught, use its args to derive an exit status. Allows (quit) to work from a script. (scm_exit_status): new function. #include "eq.h".
This commit is contained in:
parent
8e44e7a0c7
commit
1a36eef2ea
5 changed files with 34 additions and 12 deletions
|
@ -83,10 +83,12 @@ extern SCM scm_body_thunk SCM_P ((void *, SCM));
|
|||
|
||||
extern SCM scm_handle_by_proc SCM_P ((void *, SCM, SCM));
|
||||
extern SCM scm_handle_by_message SCM_P ((void *, SCM, SCM));
|
||||
extern int scm_exit_status SCM_P ((SCM args));
|
||||
|
||||
extern SCM scm_catch SCM_P ((SCM tag, SCM thunk, SCM handler));
|
||||
extern SCM scm_lazy_catch SCM_P ((SCM tag, SCM thunk, SCM handler));
|
||||
extern SCM scm_ithrow SCM_P ((SCM key, SCM args, int noreturn));
|
||||
|
||||
extern SCM scm_throw SCM_P ((SCM key, SCM args));
|
||||
extern void scm_init_throw SCM_P ((void));
|
||||
#endif /* THROWH */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue