Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(571)

Side by Side Diff: runtime/vm/flags.h

Issue 2974233002: VM: Re-format to use at most one newline between functions (Closed)
Patch Set: Rebase and merge Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « runtime/vm/fixed_cache_test.cc ('k') | runtime/vm/flags.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, 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 RUNTIME_VM_FLAGS_H_ 5 #ifndef RUNTIME_VM_FLAGS_H_
6 #define RUNTIME_VM_FLAGS_H_ 6 #define RUNTIME_VM_FLAGS_H_
7 7
8 #include "platform/assert.h" 8 #include "platform/assert.h"
9 #include "vm/flag_list.h" 9 #include "vm/flag_list.h"
10 #include "vm/globals.h" 10 #include "vm/globals.h"
11 11
12 typedef const char* charp; 12 typedef const char* charp;
13 13
14 #define DECLARE_FLAG(type, name) extern type FLAG_##name 14 #define DECLARE_FLAG(type, name) 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 = \ 17 type FLAG_##name = \
18 Flags::Register_##type(&FLAG_##name, #name, default_value, comment); 18 Flags::Register_##type(&FLAG_##name, #name, default_value, comment);
19 19
20 #define DEFINE_FLAG_HANDLER(handler, name, comment) \ 20 #define DEFINE_FLAG_HANDLER(handler, name, comment) \
21 bool DUMMY_##name = Flags::Register_func(handler, #name, comment); 21 bool DUMMY_##name = Flags::Register_func(handler, #name, comment);
22 22
23
24 namespace dart { 23 namespace dart {
25 24
26 typedef void (*FlagHandler)(bool value); 25 typedef void (*FlagHandler)(bool value);
27 26
28 // Forward declarations. 27 // Forward declarations.
29 class Flag; 28 class Flag;
30 class JSONArray; 29 class JSONArray;
31 class JSONStream; 30 class JSONStream;
32 31
33 class Flags { 32 class Flags {
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 PRECOMPILE_FLAG_MARCO) 145 PRECOMPILE_FLAG_MARCO)
147 146
148 #undef RELEASE_FLAG_MARCO 147 #undef RELEASE_FLAG_MARCO
149 #undef DEBUG_FLAG_MARCO 148 #undef DEBUG_FLAG_MARCO
150 #undef PRODUCT_FLAG_MARCO 149 #undef PRODUCT_FLAG_MARCO
151 #undef PRECOMPILE_FLAG_MARCO 150 #undef PRECOMPILE_FLAG_MARCO
152 151
153 } // namespace dart 152 } // namespace dart
154 153
155 #endif // RUNTIME_VM_FLAGS_H_ 154 #endif // RUNTIME_VM_FLAGS_H_
OLDNEW
« no previous file with comments | « runtime/vm/fixed_cache_test.cc ('k') | runtime/vm/flags.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698