src/parser/Debug_Options.cc
unsigned add_debug_option(string const &option_name) {
  if (extended_debug_option.find(option_name) != extended_debug_option.end()) {
    // option already exists; regard as benign
    return extended_debug_option[option_name];
  } else {
    while (available != 0 &&
           extended_debug_back_option.find(available) != extended_debug_back_option.end()) {
      available <<= 1U;
    }
    if (available == 0) {
      throw std::range_error("maximum debug options exceeded");
      // yeah, i know, if there are 4G debug options, someone has lost his
      // mind. Still.
    }
    extended_debug_option[option_name] = available;
    extended_debug_back_option[available] = option_name;
    return available;
  }
}
//------------------------------------------------------------------------------------------------//
/*!
 * \brief Add a new debug option to the debug parser specific to an
 *      application. This version assigns the next available bit.
 *
 * \param[in] option_name Debug option keyword
 * \return Bitflag value assigned to the new debug option.
 */
\brief Add a new debug option to the debug parser specific to an
application. This version assigns the next available bit.

\param[in] option_name Debug option keyword
\return Bitflag value assigned to the new debug option.
\ brief Add a new debug option to the debug parser specific to an application . This version assigns the next available bit . \ param [ in ] option_name Debug option keyword \ return Bitflag value assigned to the new debug option .
unsigned add_debug_option(string const &option_name) {
  if (extended_debug_option.find(option_name) != extended_debug_option.end()) {
    return extended_debug_option[option_name];
  } else {
    while (available != 0 &&
           extended_debug_back_option.find(available) != extended_debug_back_option.end()) {
      available <<= 1U;
    }
    if (available == 0) {
      throw std::range_error("maximum debug options exceeded");
    }
    extended_debug_option[option_name] = available;
    extended_debug_back_option[available] = option_name;
    return available;
  }
}
unsigned add_debug_option ( string const & option_name ) { if ( extended_debug_option . find ( option_name ) != extended_debug_option . end ( ) ) { return extended_debug_option [ option_name ] ; } else { while ( available != 0 && extended_debug_back_option . find ( available ) != extended_debug_back_option . end ( ) ) { available <<= 1U ; } if ( available == 0 ) { throw std :: range_error ( " " ) ; } extended_debug_option [ option_name ] = available ; extended_debug_back_option [ available ] = option_name ; return available ; } }
\brief Add a new debug option to the debug parser specific to an
      application.
\ brief Add a new debug option to the debug parser specific to an application .
// option already exists; regard as benign // yeah, i know, if there are 4G debug options, someone has lost his // mind. Still.