Ignore:
Timestamp:
9 Nov 2015, 21:13:05 (8 years ago)
Author:
tech
Message:

Macro cleanups.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HTM-15.2-dev/source/Lib/TAppCommon/program_options_lite.cpp

    r1356 r1374  
    111111    }
    112112
    113 #if NH_MV_SEI
     113#if NH_MV
    114114    static void setOptions(Options::NamesPtrList& opt_list, const std::vector<int> idcs, const string& value, ErrorReporter& error_reporter)
    115115#else
     
    121121      for (Options::NamesPtrList::iterator it = opt_list.begin(); it != opt_list.end(); ++it)
    122122      {
    123         #if NH_MV_SEI
     123#if NH_MV
    124124          Bool doParsing = (*it)->opt->checkDim( idcs, error_reporter );
    125125          if ( doParsing )
     
    127127            (*it)->opt->parse(value, idcs, error_reporter);
    128128          }
    129          
    130         #else
     129#else
    131130        (*it)->opt->parse(value, error_reporter);
    132         #endif
     131#endif
    133132      }
    134133    }
     
    290289    bool OptionWriter::storePair(bool allow_long, bool allow_short, const string& name, const string& value)
    291290    {
    292 #if NH_MV_SEI
     291#if NH_MV
    293292      std::vector<int> idcs;             
    294293     
     
    324323          found = true;
    325324        }
    326 #if NH_MV_SEI
     325#if NH_MV
    327326        if ( idcs.size() > 0 )
    328327        {
     
    347346          found = true;
    348347        }
    349 #if NH_MV_SEI
     348#if NH_MV
    350349        if ( idcs.size() > 0 )
    351350        {
     
    362361      }
    363362
    364 #if NH_MV_SEI
     363#if NH_MV
    365364    if ( !found_idcs )
    366365    {
     
    370369      if (!found)
    371370      {
    372 #if NH_MV_SEI
     371#if NH_MV
    373372        if (error_reporter.output_on_unknow_parameter )
    374373        {       
     
    377376        error_reporter.error(where())
    378377          << "Unknown option `" << name << "' (value:`" << value << "')\n";
    379 #if NH_MV_SEI
     378#if NH_MV
    380379        }
    381380#endif
     
    383382      }
    384383
    385 #if NH_MV_SEI
     384#if NH_MV
    386385      setOptions((*opt_it).second, idcs, value, error_reporter);
    387386#else
Note: See TracChangeset for help on using the changeset viewer.