Changeset d13e27 for src/base/helper.hpp
- Timestamp:
- Mar 29, 2013, 5:03:13 PM (13 years ago)
- Children:
- f57182
- Parents:
- 5ba22b
- File:
-
- 1 edited
-
src/base/helper.hpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/base/helper.hpp
r5ba22b rd13e27 72 72 str >> val; 73 73 74 if (str.fail() || str.bad() || !str.eof()) { 75 #ifdef DEBUG_VERBOSE 76 std::printf("VMG::Helper::ToValWithDefault: Using default value.\n"); 77 #endif 78 val = def; 79 } 74 if (str.fail() || str.bad() || !str.eof()) val = def; 80 75 81 76 return val; … … 175 170 bool rval = (val1 == val2); 176 171 177 #ifdef DEBUG _OUTPUT172 #ifdef DEBUG 178 173 if (!rval) 179 printf("WARNING: Values are not equal (%s)\n", name); 180 #endif /* DEBUG_OUTPUT */ 181 174 printf("Equality test failed (%s)\n", name); 182 175 assert(rval); 176 #endif /* DEBUG */ 183 177 184 178 return rval;
Note:
See TracChangeset
for help on using the changeset viewer.
