1 // Copyright 2016 Google Inc.
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 //      http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14 //
15 ////////////////////////////////////////////////////////////////////////////////
16 
17 #ifndef UTIL_COMMANDLINEFLAGS_H_
18 #define UTIL_COMMANDLINEFLAGS_H_
19 
20 
21 #undef DEFINE_bool
22 #define DEFINE_bool(name, default_value, comment) \
23     bool FLAGS_##name = default_value
24 #undef DEFINE_int32
25 #define DEFINE_int32(name, default_value, comment) \
26     int32 FLAGS_##name = default_value
27 #undef DEFINE_string
28 #define DEFINE_string(name, default_value, comment) \
29     string FLAGS_##name = default_value
30 
31 #undef DECLARE_bool
32 #define DECLARE_bool(name) extern bool FLAGS_##name
33 #undef DECLARE_int32
34 #define DECLARE_int32(name) extern int32 FLAGS_##name
35 #undef DECLARE_string
36 #define DECLARE_string(name) extern string FLAGS_##name
37 
38 
39 #endif  // UTIL_COMMANDLINEFLAGS_H_
40