diff options
Diffstat (limited to 'libguile/procs.h')
-rw-r--r-- | libguile/procs.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libguile/procs.h b/libguile/procs.h index 7e445ad11..dc764edf8 100644 --- a/libguile/procs.h +++ b/libguile/procs.h @@ -86,8 +86,9 @@ #define SCM_CLOSUREP(x) (!SCM_IMP(x) && (SCM_TYP3 (x) == scm_tc3_closure)) #define SCM_CLOSCAR(x) SCM_PACK (SCM_CELL_WORD_0 (x) - scm_tc3_closure) #define SCM_CODE(x) SCM_CAR (SCM_CLOSCAR (x)) -#define SCM_CLOSURE_FORMALS(x) SCM_CAR (SCM_CODE (x)) -#define SCM_CLOSURE_BODY(x) SCM_CDR (SCM_CODE (x)) +#define SCM_CLOSURE_NUM_REQUIRED_ARGS(x) SCM_I_INUM (SCM_CAR (SCM_CODE (x))) +#define SCM_CLOSURE_HAS_REST_ARGS(x) scm_is_true (SCM_CADR (SCM_CODE (x))) +#define SCM_CLOSURE_BODY(x) SCM_CDDR (SCM_CODE (x)) #define SCM_PROCPROPS(x) SCM_CDR (SCM_CLOSCAR (x)) #define SCM_SETPROCPROPS(x, p) SCM_SETCDR (SCM_CLOSCAR (x), p) #define SCM_ENV(x) SCM_CELL_OBJECT_1 (x) |