aboutsummaryrefslogtreecommitdiff
path: root/build/module
blob: 81595d3bb8aaa735f3c4aabfcdeb3b91c1f71bea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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