(mu-strerror): New function
Showing
1 changed file
with
11 additions
and
0 deletions
... | @@ -153,6 +153,17 @@ SCM_DEFINE (scm_mu_register_format, "mu-register-format", 0, 0, 1, | ... | @@ -153,6 +153,17 @@ SCM_DEFINE (scm_mu_register_format, "mu-register-format", 0, 0, 1, |
153 | } | 153 | } |
154 | #undef FUNC_NAME | 154 | #undef FUNC_NAME |
155 | 155 | ||
156 | SCM_DEFINE (scm_mu_strerror, "mu-strerror", 1, 0, 0, | ||
157 | (SCM ERR), | ||
158 | "Return the error message corresponding to ERR, which must be\n" | ||
159 | "an integer value.\n") | ||
160 | #define FUNC_NAME s_scm_mu_strerror | ||
161 | { | ||
162 | SCM_ASSERT (scm_is_integer (ERR), ERR, SCM_ARG1, FUNC_NAME); | ||
163 | return scm_makfrom0str (mu_strerror (scm_to_int (ERR))); | ||
164 | } | ||
165 | #undef FUNC_NAME | ||
166 | |||
156 | static struct | 167 | static struct |
157 | { | 168 | { |
158 | char *name; | 169 | char *name; | ... | ... |
-
Please register or sign in to post a comment