aboutsummaryrefslogtreecommitdiff
path: root/build/module
diff options
context:
space:
mode:
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