1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-06-17 01:00:20 +02:00

* validate.h (SCM_VALIDATE_DOUBLE_DEF_COPY): New macro.

This commit is contained in:
Mikael Djurfeldt 2001-10-12 08:55:05 +00:00
parent d5cf5324a3
commit 68665a9708
2 changed files with 19 additions and 0 deletions

View file

@ -1,3 +1,9 @@
2001-10-12 Mikael Djurfeldt <mdj@linnaeus>
* debug.c (scm_mem_to_proc): Fixed typo in previous change.
* validate.h (SCM_VALIDATE_DOUBLE_DEF_COPY): New macro.
2001-10-12 Dirk Herrmann <D.Herrmann@tu-bs.de>
* print.c (scm_print_state_vtable, print_state_pool):

View file

@ -293,6 +293,19 @@
} \
} while (0)
#define SCM_VALIDATE_DOUBLE_DEF_COPY(pos, k, default, cvar) \
do { \
if (SCM_UNBNDP (k)) \
{ \
k = scm_make_real (default); \
cvar = default; \
} \
else \
{ \
cvar = SCM_NUM2DOUBLE (pos, k); \
} \
} while (0)
/* [low,high) */
#define SCM_VALIDATE_INUM_RANGE(pos,k,low,high) \
do { SCM_ASSERT(SCM_INUMP(k), k, pos, FUNC_NAME); \