mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-02 04:40:29 +02:00
(SCM_ASRTGO): add "else" to macro expansions with if
clauses.
This commit is contained in:
parent
983e697d52
commit
4c27f8d23b
2 changed files with 8 additions and 3 deletions
|
@ -1,3 +1,8 @@
|
|||
2003-07-02 Han-Wen Nienhuys <hanwen@cs.uu.nl>
|
||||
|
||||
* __scm.h (SCM_ASRTGO): add "else" to macro expansions with if
|
||||
clauses.
|
||||
|
||||
2003-06-29 Marius Vollmer <mvo@zagadka.de>
|
||||
|
||||
* deprecated.h (SCM_OPDIRP, scm_fport, scm_option, scm_srcprops,
|
||||
|
|
|
@ -492,13 +492,13 @@ do { \
|
|||
#else
|
||||
#define SCM_ASSERT(_cond, _arg, _pos, _subr) \
|
||||
if (!(_cond)) \
|
||||
scm_wrong_type_arg (_subr, _pos, _arg)
|
||||
scm_wrong_type_arg (_subr, _pos, _arg); else
|
||||
#define SCM_ASSERT_TYPE(_cond, _arg, _pos, _subr, _msg) \
|
||||
if (!(_cond)) \
|
||||
scm_wrong_type_arg_msg(_subr, _pos, _arg, _msg)
|
||||
scm_wrong_type_arg_msg(_subr, _pos, _arg, _msg); else
|
||||
#define SCM_ASRTGO(_cond, _label) \
|
||||
if (!(_cond)) \
|
||||
goto _label
|
||||
goto _label; else
|
||||
#endif
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue