| OLD | NEW |
| 1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // This is the file that should be included by any file which declares | 5 // This is the file that should be included by any file which declares |
| 6 // or defines a command line flag or wants to parse command line flags | 6 // or defines a command line flag or wants to parse command line flags |
| 7 // or print a program usage message (which will include information about | 7 // or print a program usage message (which will include information about |
| 8 // flags). Executive summary, in the form of an example foo.cc file: | 8 // flags). Executive summary, in the form of an example foo.cc file: |
| 9 // | 9 // |
| 10 // #include "foo.h" // foo.h has a line "DECLARE_int32(start);" | 10 // #include "foo.h" // foo.h has a line "DECLARE_int32(start);" |
| 11 // | 11 // |
| (...skipping 422 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 434 static FlagRegisterer o_##name( \ | 434 static FlagRegisterer o_##name( \ |
| 435 #name, "string", MAYBE_STRIPPED_HELP(txt), __FILE__, \ | 435 #name, "string", MAYBE_STRIPPED_HELP(txt), __FILE__, \ |
| 436 s_##name[0].s, new (s_##name[1].s) string(*FLAGS_no##name)); \ | 436 s_##name[0].s, new (s_##name[1].s) string(*FLAGS_no##name)); \ |
| 437 string& FLAGS_##name = *(reinterpret_cast<string*>(s_##name[0].s)); \ | 437 string& FLAGS_##name = *(reinterpret_cast<string*>(s_##name[0].s)); \ |
| 438 } \ | 438 } \ |
| 439 using fLS::FLAGS_##name | 439 using fLS::FLAGS_##name |
| 440 | 440 |
| 441 #endif // SWIG | 441 #endif // SWIG |
| 442 | 442 |
| 443 #endif // BASE_COMMANDLINEFLAGS_H_ | 443 #endif // BASE_COMMANDLINEFLAGS_H_ |
| OLD | NEW |