diff options
author | Andy Wingo <wingo@pobox.com> | 2011-05-15 13:34:07 +0200 |
---|---|---|
committer | Andy Wingo <wingo@pobox.com> | 2011-05-15 15:34:16 +0200 |
commit | 6703caf7265602951ffcc932bddc64fc37769b19 (patch) | |
tree | 179cd93daa482c10f091c5013f7ce2f78cc5e25c /libguile/__scm.h | |
parent | cb5b7677a2df77cecd9cd8a7a19b5d4433d908b0 (diff) | |
download | guile-6703caf7265602951ffcc932bddc64fc37769b19.tar.gz |
SCM_ASSERT to error.h
* libguile/error.h (SCM_ASSERT, SCM_ASSERT_TYPE): Move definition here.
Remove SCM_RECKLESS case.
* libguile/__scm.h: (From here.)
Diffstat (limited to 'libguile/__scm.h')
-rw-r--r-- | libguile/__scm.h | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/libguile/__scm.h b/libguile/__scm.h index eb6d60372..3bb6b80d8 100644 --- a/libguile/__scm.h +++ b/libguile/__scm.h @@ -398,23 +398,6 @@ typedef long SCM_STACKITEM; -/** SCM_ASSERT - ** - **/ - - -#ifdef SCM_RECKLESS -#define SCM_ASSERT(_cond, _arg, _pos, _subr) -#define SCM_ASSERT_TYPE(_cond, _arg, _pos, _subr, _msg) -#else -#define SCM_ASSERT(_cond, _arg, _pos, _subr) \ - do { if (SCM_UNLIKELY (!(_cond))) \ - scm_wrong_type_arg (_subr, _pos, _arg); } while (0) -#define SCM_ASSERT_TYPE(_cond, _arg, _pos, _subr, _msg) \ - do { if (SCM_UNLIKELY (!(_cond))) \ - scm_wrong_type_arg_msg(_subr, _pos, _arg, _msg); } while (0) -#endif - /* * SCM_WTA_DISPATCH */ |