aboutsummaryrefslogtreecommitdiff
path: root/build/module
blob: 6a7a8a77f9ec4831e2a4e62effb0e04e6532b37e (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_init_function = void (scope& root, scope& base, const location&);
  using module_map = std::unordered_map<std::string, module_init_function*>;

  extern module_map modules;
}

#endif // BUILD_MODULE