1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-06-10 14:00:21 +02:00

* modules.h. modules.c (scm_current_module_lookup_closure): New

function.
This commit is contained in:
Marius Vollmer 2001-02-11 18:14:34 +00:00
parent 4163eb7236
commit 9e57344b1d
2 changed files with 10 additions and 0 deletions

View file

@ -144,6 +144,15 @@ scm_module_lookup_closure (SCM module)
return SCM_MODULE_EVAL_CLOSURE (module);
}
SCM
scm_current_module_lookup_closure ()
{
if (scm_module_system_booted_p)
return scm_module_lookup_closure (scm_current_module ());
else
return SCM_BOOL_F;
}
static SCM resolve_module;
SCM

View file

@ -84,6 +84,7 @@ extern SCM scm_module_tag;
extern SCM scm_the_root_module (void);
extern SCM scm_current_module (void);
extern SCM scm_current_module_lookup_closure (void);
extern SCM scm_interaction_environment (void);
extern SCM scm_set_current_module (SCM module);
extern SCM scm_make_module (SCM name);