OLD | NEW |
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 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 file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 #ifndef VM_FLAGS_H_ | 5 #ifndef VM_FLAGS_H_ |
6 #define VM_FLAGS_H_ | 6 #define VM_FLAGS_H_ |
7 | 7 |
8 #include "vm/assert.h" | 8 #include "platform/assert.h" |
9 #include "vm/globals.h" | 9 #include "vm/globals.h" |
10 | 10 |
11 typedef const char* charp; | 11 typedef const char* charp; |
12 | 12 |
13 #define DECLARE_FLAG(type, name) \ | 13 #define DECLARE_FLAG(type, name) \ |
14 extern type FLAG_##name | 14 extern type FLAG_##name |
15 | 15 |
16 #define DEFINE_FLAG(type, name, default_value, comment) \ | 16 #define DEFINE_FLAG(type, name, default_value, comment) \ |
17 type FLAG_##name = Flags::Register_##type(&FLAG_##name, \ | 17 type FLAG_##name = Flags::Register_##type(&FLAG_##name, \ |
18 #name, \ | 18 #name, \ |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 // Testing needs direct access to private methods. | 67 // Testing needs direct access to private methods. |
68 friend void Dart_TestParseFlags(); | 68 friend void Dart_TestParseFlags(); |
69 | 69 |
70 DISALLOW_ALLOCATION(); | 70 DISALLOW_ALLOCATION(); |
71 DISALLOW_IMPLICIT_CONSTRUCTORS(Flags); | 71 DISALLOW_IMPLICIT_CONSTRUCTORS(Flags); |
72 }; | 72 }; |
73 | 73 |
74 } // namespace dart | 74 } // namespace dart |
75 | 75 |
76 #endif // VM_FLAGS_H_ | 76 #endif // VM_FLAGS_H_ |
OLD | NEW |