summaryrefslogtreecommitdiff
path: root/libguile/modules.h
diff options
context:
space:
mode:
authorAndy Wingo <wingo@pobox.com>2018-05-14 10:38:05 +0200
committerAndy Wingo <wingo@pobox.com>2018-05-14 11:27:30 +0200
commit16a996f052f381d915288bc4f39dfc4c21930295 (patch)
tree1cd76aae340eb8c2b915b0756f4ba56ab428a71e /libguile/modules.h
parentad96291ffe2a32b85c94639b6f250fd9be846c59 (diff)
downloadguile-16a996f052f381d915288bc4f39dfc4c21930295.tar.gz
Add scm_maybe_resolve_module
* libguile/modules.c (scm_maybe_resolve_module): New API function, like resolve-module but not ensuring that the module is created. (scm_public_variable, scm_private_variable): Adapt to call scm_maybe_resolve_module. * libguile/modules.h (scm_maybe_resolve_module): Declare new API.
Diffstat (limited to 'libguile/modules.h')
-rw-r--r--libguile/modules.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/libguile/modules.h b/libguile/modules.h
index 28df6c6ea..207ec4470 100644
--- a/libguile/modules.h
+++ b/libguile/modules.h
@@ -3,7 +3,7 @@
#ifndef SCM_MODULES_H
#define SCM_MODULES_H
-/* Copyright (C) 1998, 2000, 2001, 2002, 2003, 2006, 2007, 2008, 2011, 2012 Free Software Foundation, Inc.
+/* Copyright (C) 1998, 2000, 2001, 2002, 2003, 2006, 2007, 2008, 2011, 2012, 2018 Free Software Foundation, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
@@ -108,6 +108,7 @@ SCM_API SCM scm_c_private_ref (const char *module_name, const char *name);
SCM_API SCM scm_c_resolve_module (const char *name);
SCM_API SCM scm_resolve_module (SCM name);
+SCM_API SCM scm_maybe_resolve_module (SCM name);
SCM_API SCM scm_c_define_module (const char *name,
void (*init)(void *), void *data);
SCM_API void scm_c_use_module (const char *name);