static SCM
get_applybody ()
{
- SCM cell = scm_sym2vcell (scm_sym_apply, SCM_BOOL_F, SCM_BOOL_F);
- if (SCM_CONSP (cell) && SCM_CLOSUREP (SCM_CDR (cell)))
- return SCM_CADR (SCM_CODE (SCM_CDR (cell)));
+ SCM var = scm_sym2var (scm_sym_apply, SCM_BOOL_F, SCM_BOOL_F);
+ if (SCM_VARIABLEP (var) && SCM_CLOSUREP (SCM_VARIABLE_REF (var)))
+ return SCM_CADR (SCM_CODE (SCM_VARIABLE_REF (var)));
else
return SCM_UNDEFINED;
}