]> git.donarmstrong.com Git - lilypond.git/blob - guile18/libguile/error.h
Import guile-1.8 as multiple upstream tarball component
[lilypond.git] / guile18 / libguile / error.h
1 /* classes: h_files */
2
3 #ifndef SCM_ERROR_H
4 #define SCM_ERROR_H
5
6 /* Copyright (C) 1995,1996,1997,1998,2000,2001, 2002, 2006 Free Software Foundation, Inc.
7  *
8  * This library is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU Lesser General Public
10  * License as published by the Free Software Foundation; either
11  * version 2.1 of the License, or (at your option) any later version.
12  *
13  * This library is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16  * Lesser General Public License for more details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with this library; if not, write to the Free Software
20  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21  */
22
23 \f
24
25 #include "libguile/__scm.h"
26
27 \f
28 SCM_API SCM scm_system_error_key;
29 SCM_API SCM scm_num_overflow_key;
30 SCM_API SCM scm_out_of_range_key;
31 SCM_API SCM scm_args_number_key;
32 SCM_API SCM scm_arg_type_key;
33 SCM_API SCM scm_memory_alloc_key;
34 SCM_API SCM scm_misc_error_key;
35
36 \f
37
38 SCM_API void scm_error (SCM key, const char *subr, const char *message,
39                         SCM args, SCM rest) SCM_NORETURN;
40 SCM_API SCM scm_error_scm (SCM key, SCM subr, SCM message,
41                            SCM args, SCM rest) SCM_NORETURN;
42 SCM_API SCM scm_strerror (SCM err);
43 SCM_API void scm_syserror (const char *subr) SCM_NORETURN;
44 SCM_API void scm_syserror_msg (const char *subr, const char *message,
45                                SCM args, int eno) SCM_NORETURN;
46 SCM_API void scm_num_overflow (const char *subr) SCM_NORETURN;
47 SCM_API void scm_out_of_range (const char *subr, SCM bad_value)
48      SCM_NORETURN;
49 SCM_API void scm_out_of_range_pos (const char *subr, SCM bad_value, SCM pos)
50      SCM_NORETURN;
51 SCM_API void scm_wrong_num_args (SCM proc) SCM_NORETURN;
52 SCM_API void scm_error_num_args_subr (const char* subr) SCM_NORETURN;
53 SCM_API void scm_wrong_type_arg (const char *subr, int pos,
54                                  SCM bad_value) SCM_NORETURN;
55 SCM_API void scm_wrong_type_arg_msg (const char *subr, int pos,
56                                      SCM bad_value, const char *sz) SCM_NORETURN;
57 SCM_API void scm_memory_error (const char *subr) SCM_NORETURN;
58 SCM_API void scm_misc_error (const char *subr, const char *message,
59                              SCM args) SCM_NORETURN;
60 SCM_API void scm_init_error (void);
61
62 #endif  /* SCM_ERROR_H */
63
64 /*
65   Local Variables:
66   c-file-style: "gnu"
67   End:
68 */