mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-04-30 03:40:34 +02:00
Merge commit 'fdd319e9bd
'
This commit is contained in:
commit
086bbcc874
7 changed files with 41 additions and 24 deletions
|
@ -92,6 +92,8 @@
|
|||
#define SCM_NUM2ULONG_LONG_DEF(pos, arg, def) \
|
||||
(SCM_UNBNDP (arg) ? def : scm_to_ulong_long (arg))
|
||||
|
||||
#define SCM_NUM2SIZE(pos, arg) (scm_to_size_t (arg))
|
||||
|
||||
#define SCM_NUM2FLOAT(pos, arg) ((float) scm_to_double (arg))
|
||||
|
||||
#define SCM_NUM2DOUBLE(pos, arg) (scm_to_double (arg))
|
||||
|
@ -201,6 +203,11 @@
|
|||
cvar = SCM_NUM2LONG (pos, k); \
|
||||
} while (0)
|
||||
|
||||
#define SCM_VALIDATE_SIZE_COPY(pos, k, cvar) \
|
||||
do { \
|
||||
cvar = SCM_NUM2SIZE (pos, k); \
|
||||
} while (0)
|
||||
|
||||
#define SCM_VALIDATE_FLOAT_COPY(pos, k, cvar) \
|
||||
do { \
|
||||
cvar = SCM_NUM2FLOAT (pos, k); \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue