Changeset d13e27 for src/base/helper.hpp


Ignore:
Timestamp:
Mar 29, 2013, 5:03:13 PM (13 years ago)
Author:
Julian Iseringhausen <isering@…>
Children:
f57182
Parents:
5ba22b
Message:

vmg: Work on output verbosity.

git-svn-id: https://svn.version.fz-juelich.de/scafacos/trunk@2845 5161e1c8-67bf-11de-9fd5-51895aff932f

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/base/helper.hpp

    r5ba22b rd13e27  
    7272    str >> val;
    7373
    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;
    8075
    8176    return val;
     
    175170    bool rval = (val1 == val2);
    176171
    177 #ifdef DEBUG_OUTPUT
     172#ifdef DEBUG
    178173    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);
    182175    assert(rval);
     176#endif /* DEBUG */
    183177
    184178    return rval;
Note: See TracChangeset for help on using the changeset viewer.