OLD | NEW |
| (Empty) |
1 // Copyright (c) 2014, the Dartino project authors. Please see the AUTHORS file | |
2 // for details. All rights reserved. Use of this source code is governed by a | |
3 // BSD-style license that can be found in the LICENSE.md file. | |
4 | |
5 #ifndef SRC_SHARED_FLETCH_H_ | |
6 #define SRC_SHARED_FLETCH_H_ | |
7 | |
8 #include "src/shared/globals.h" | |
9 | |
10 namespace fletch { | |
11 | |
12 // Fletch is a helper class used to call system wide functions such as | |
13 // initialization. The definition of the class is shared between the | |
14 // compiler and the VM, but both of these have their own implementation. | |
15 class Fletch { | |
16 public: | |
17 // Initialize Fletch and all its subsystems. | |
18 static void Setup(); | |
19 | |
20 static void TearDown(); | |
21 | |
22 private: | |
23 // Make sure that this class can not ever be instantiated. All its methods | |
24 // should be static class methods. | |
25 DISALLOW_ALLOCATION(); | |
26 DISALLOW_IMPLICIT_CONSTRUCTORS(Fletch); | |
27 }; | |
28 | |
29 } // namespace fletch | |
30 | |
31 #endif // SRC_SHARED_FLETCH_H_ | |
OLD | NEW |