aboutsummaryrefslogtreecommitdiff
path: root/build/module
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-03-18 15:45:56 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-03-18 15:45:56 +0200
commitb6e72877a1a26a6ae16961728ee57e45f657f717 (patch)
treea161dd0d5ded669100a4adda9db256a30c366a9b /build/module
parent5b5aabc6d347ff209c35b2db7250d4caaf9fd643 (diff)
Implement complete root/base detection, basic module support
This is the initial groundwork for the configuration support.
Diffstat (limited to 'build/module')
-rw-r--r--build/module22
1 files changed, 22 insertions, 0 deletions
diff --git a/build/module b/build/module
new file mode 100644
index 0000000..81595d3
--- /dev/null
+++ b/build/module
@@ -0,0 +1,22 @@
+// file : build/module -*- C++ -*-
+// copyright : Copyright (c) 2014-2015 Code Synthesis Tools CC
+// license : MIT; see accompanying LICENSE file
+
+#ifndef BUILD_MODULE
+#define BUILD_MODULE
+
+#include <string>
+#include <unordered_map>
+
+namespace build
+{
+ class scope;
+ class location;
+
+ using module_load_function = void (scope& root, scope& base, const location&);
+ using module_map = std::unordered_map<std::string, module_load_function*>;
+
+ extern module_map modules;
+}
+
+#endif // BUILD_MODULE