Skip to content

Commit 2022323

Browse files
committed
Add code to warn binding syntax/macro with define
But disabled for now, since it interferes autoload.
1 parent ac4a0d4 commit 2022323

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

src/module.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -489,6 +489,15 @@ ScmGloc *Scm_MakeBinding(ScmModule *module, ScmSymbol *symbol,
489489
#endif
490490
}
491491

492+
#if 0
493+
/* This also interferes with autoload. */
494+
if ((SCM_SYNTAXP(value) || SCM_MACROP(value))
495+
&& !(flags & SCM_BINDING_SYNTAX)) {
496+
Scm_Warn("Effect of binding syntax/macro using `define' is undefined. (%S#%S)",
497+
g->module->name, g->name);
498+
}
499+
#endif
500+
492501
g->value = value;
493502
Scm_GlocMark(g, flags);
494503
return g;

0 commit comments

Comments
 (0)