diff options
author | Greg J. Badros <gjb@cs.washington.edu> | 2000-03-03 00:09:54 +0000 |
---|---|---|
committer | Greg J. Badros <gjb@cs.washington.edu> | 2000-03-03 00:09:54 +0000 |
commit | b6791b2e94a4958e0da1ce7266c82320aff82a1b (patch) | |
tree | a24f6c97960f787d9ad2efdafa1442151ac9603a /libguile/error.h | |
parent | 417bdef8a5b901088bf7b535a94973ffa81575c8 (diff) | |
download | guile-b6791b2e94a4958e0da1ce7266c82320aff82a1b.tar.gz |
* error.h, error.c: Added `scm_wrong_type_arg_msg' to support
displaying the expected type. Use SCM_LISTn in a couple places
instead of scm_cons-ing by hand.
* __scm.h: Added SCM_ASSERT_TYPE macro.
* validate.h, scm_validate.h: Added the former, as a renamed
version of the latter with SCM_ASSERT_TYPE used in
SCM_MAKE_VALIDATE (instead of just SCM_ASSERT)
* Makefile.am: Rename scm_validate.h to validate.h.
* *.c, *.h: Include validate.h, not scm_validate.h (old name's
prefix was superfluous).
Diffstat (limited to 'libguile/error.h')
-rw-r--r-- | libguile/error.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libguile/error.h b/libguile/error.h index 81a79ff46..11924dcea 100644 --- a/libguile/error.h +++ b/libguile/error.h @@ -78,6 +78,8 @@ extern void scm_out_of_range_pos (const char *subr, SCM bad_value, SCM pos) extern void scm_wrong_num_args (SCM proc) SCM_NORETURN; extern void scm_wrong_type_arg (const char *subr, int pos, SCM bad_value) SCM_NORETURN; +extern void scm_wrong_type_arg_msg (const char *subr, int pos, + SCM bad_value, const char *sz) SCM_NORETURN; extern void scm_memory_error (const char *subr) SCM_NORETURN; extern void scm_misc_error (const char *subr, const char *message, SCM args) SCM_NORETURN; |