Home | History | Annotate | Download | only in src

Lines Matching refs:FLAG

6 // for Debug, Release, Logging and Profiling, etc.  To add a new flag, find the
20 // this will just be an extern declaration, but for a readonly flag we let the
27 // We want to supply the actual storage and value for the flag variable in the
32 // We need to define all of our default values so that the Flag structure can
40 // printing / etc in the flag parser code. We only do this for writable flags.
43 { Flag::TYPE_##ftype, #nam, &FLAG_##nam, &FLAGDEFAULT_##nam, cmt, false } \
47 Flag::TYPE_##ftype, #alias, &FLAG_##nam, &FLAGDEFAULT_##nam, \
52 // We produce the code to set flags when it is implied by another flag.
97 MaybeBoolFlag flag;
98 flag.has_value = has_value;
99 flag.value = value;
100 return flag;
128 #define DEFINE_BOOL(nam, def, cmt) FLAG(BOOL, bool, nam, def, cmt)
130 FLAG(MAYBE_BOOL, MaybeBoolFlag, nam, {false COMMA false}, cmt)
131 #define DEFINE_INT(nam, def, cmt) FLAG(INT, int, nam, def, cmt)
132 #define DEFINE_FLOAT(nam, def, cmt) FLAG(FLOAT, double, nam, def, cmt)
133 #define DEFINE_STRING(nam, def, cmt) FLAG(STRING, const char*, nam, def, cmt)
134 #define DEFINE_ARGS(nam, cmt) FLAG(ARGS, JSArguments, nam, {0 COMMA NULL}, cmt)
146 #define FLAG FLAG_FULL
189 // TODO(hpayer): We will remove this flag as soon as we have pretenuring
638 DEFINE_FLOAT(testing_float_flag, 2.5, "float-flag")
639 DEFINE_STRING(testing_string_flag, "Hello, world!", "string-flag")
709 #undef FLAG
711 #define FLAG FLAG_FULL
713 #define FLAG FLAG_READONLY
780 #undef FLAG
781 #define FLAG FLAG_FULL
835 #undef FLAG
837 #define FLAG FLAG_FULL
839 #define FLAG FLAG_READONLY
894 #undef FLAG
897 #define FLAG FLAG_FULL
899 #define FLAG FLAG_READONLY
911 #undef FLAG
912 #define FLAG FLAG_READONLY
921 #undef FLAG