summaryrefslogtreecommitdiff
path: root/src/ModuleCache.cc
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2013-05-27 01:55:00 (GMT)
committerMarius Kintel <marius@kintel.net>2013-05-27 01:55:00 (GMT)
commit0967a26bff45951d7b86fe628e8b1156e6e40ede (patch)
treefa72ca81652700a373023dace3a4163036ece20e /src/ModuleCache.cc
parent837b574351cdaddaebed6c4b0ba281b7e20c2a0f (diff)
Support locating previously missing modules. yet another part of #364
Diffstat (limited to 'src/ModuleCache.cc')
-rw-r--r--src/ModuleCache.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ModuleCache.cc b/src/ModuleCache.cc
index 2d4cbe9..505015e 100644
--- a/src/ModuleCache.cc
+++ b/src/ModuleCache.cc
@@ -21,6 +21,13 @@
ModuleCache *ModuleCache::inst = NULL;
+/*!
+ Reevaluate the given file and recompile if necessary.
+ Returns NULL on any error (e.g. compile error or file not found)
+
+ If the given filename is relative, it means that the module hasn't been
+ previously located.
+*/
FileModule *ModuleCache::evaluate(const std::string &filename)
{
FileModule *lib_mod = NULL;
contact: Jan Huwald // Impressum