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

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

Issue 9189003: Move assert.h/assert.cc from runtime/vm to runtime/platform (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Check for correct rebase Created 8 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « runtime/vm/exceptions_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) 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
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_
OLDNEW
« no previous file with comments | « runtime/vm/exceptions_test.cc ('k') | runtime/vm/flags.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698