HCoop
/
bpt
/
guile.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge commit 'fdd319e9bd4121d844662d3d8ccc69b462b60840'
[bpt/guile.git]
/
libguile
/
validate.h
diff --git
a/libguile/validate.h
b/libguile/validate.h
index
6d57b9e
..
516a6f7
100644
(file)
--- a/
libguile/validate.h
+++ b/
libguile/validate.h
@@
-92,6
+92,8
@@
#define SCM_NUM2ULONG_LONG_DEF(pos, arg, def) \
(SCM_UNBNDP (arg) ? def : scm_to_ulong_long (arg))
#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))
#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)
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); \
#define SCM_VALIDATE_FLOAT_COPY(pos, k, cvar) \
do { \
cvar = SCM_NUM2FLOAT (pos, k); \