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

Side by Side Diff: webrtc/base/flags.h

Issue 1345433002: Add RTC_ prefix to contructormagic macros. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Formatting fix. Created 5 years, 3 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 | « webrtc/base/fileutils.h ('k') | webrtc/base/latebindingsymboltable.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2006 The WebRTC Project Authors. All rights reserved. 2 * Copyright 2006 The WebRTC Project Authors. All rights reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 const char* comment() const { return comment_; } 83 const char* comment() const { return comment_; }
84 84
85 // Flag type 85 // Flag type
86 Type type() const { return type_; } 86 Type type() const { return type_; }
87 87
88 // Flag variables 88 // Flag variables
89 bool* bool_variable() const { 89 bool* bool_variable() const {
90 assert(type_ == BOOL); 90 assert(type_ == BOOL);
91 return &variable_->b; 91 return &variable_->b;
92 } 92 }
93 93
94 int* int_variable() const { 94 int* int_variable() const {
95 assert(type_ == INT); 95 assert(type_ == INT);
96 return &variable_->i; 96 return &variable_->i;
97 } 97 }
98 98
99 double* float_variable() const { 99 double* float_variable() const {
100 assert(type_ == FLOAT); 100 assert(type_ == FLOAT);
101 return &variable_->f; 101 return &variable_->f;
102 } 102 }
103 103
104 const char** string_variable() const { 104 const char** string_variable() const {
105 assert(type_ == STRING); 105 assert(type_ == STRING);
106 return &variable_->s; 106 return &variable_->s;
107 } 107 }
108 108
109 // Default values 109 // Default values
110 bool bool_default() const { 110 bool bool_default() const {
111 assert(type_ == BOOL); 111 assert(type_ == BOOL);
112 return default_.b; 112 return default_.b;
113 } 113 }
114 114
115 int int_default() const { 115 int int_default() const {
116 assert(type_ == INT); 116 assert(type_ == INT);
117 return default_.i; 117 return default_.i;
118 } 118 }
119 119
120 double float_default() const { 120 double float_default() const {
121 assert(type_ == FLOAT); 121 assert(type_ == FLOAT);
122 return default_.f; 122 return default_.f;
123 } 123 }
124 124
125 const char* string_default() const { 125 const char* string_default() const {
126 assert(type_ == STRING); 126 assert(type_ == STRING);
127 return default_.s; 127 return default_.s;
128 } 128 }
129 129
130 // Resets a flag to its default value 130 // Resets a flag to its default value
131 void SetToDefault(); 131 void SetToDefault();
132 132
133 // Iteration support 133 // Iteration support
134 Flag* next() const { return next_; } 134 Flag* next() const { return next_; }
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 WindowsCommandLineArguments(); 254 WindowsCommandLineArguments();
255 ~WindowsCommandLineArguments(); 255 ~WindowsCommandLineArguments();
256 256
257 int argc() { return argc_; } 257 int argc() { return argc_; }
258 char **argv() { return argv_; } 258 char **argv() { return argv_; }
259 private: 259 private:
260 int argc_; 260 int argc_;
261 char **argv_; 261 char **argv_;
262 262
263 private: 263 private:
264 DISALLOW_COPY_AND_ASSIGN(WindowsCommandLineArguments); 264 RTC_DISALLOW_COPY_AND_ASSIGN(WindowsCommandLineArguments);
265 }; 265 };
266 #endif // WEBRTC_WIN 266 #endif // WEBRTC_WIN
267 267
268 } // namespace rtc 268 } // namespace rtc
269 269
270 #endif // SHARED_COMMANDLINEFLAGS_FLAGS_H__ 270 #endif // SHARED_COMMANDLINEFLAGS_FLAGS_H__
OLDNEW
« no previous file with comments | « webrtc/base/fileutils.h ('k') | webrtc/base/latebindingsymboltable.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698