mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-10 14:00:21 +02:00
* eval.c (scm_m_define): Bugfix: Check that the object is a
closure before setting the procedure property!
This commit is contained in:
parent
dfefe3a693
commit
70ad422696
1 changed files with 1 additions and 1 deletions
|
@ -753,7 +753,7 @@ scm_m_define (x, env)
|
|||
{
|
||||
x = evalcar (x, env);
|
||||
#ifdef DEBUG_EXTENSIONS
|
||||
if (SCM_REC_PROCNAMES_P)
|
||||
if (SCM_REC_PROCNAMES_P && SCM_NIMP (x) && SCM_CLOSUREP (x))
|
||||
scm_set_procedure_property_x (x, scm_i_name, proc);
|
||||
#endif
|
||||
arg1 = scm_sym2vcell (proc, env_top_level (env), SCM_BOOL_T);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue