Ticket #1766: wave_predefined.patch

File wave_predefined.patch, 1.1 KB (added by anonymous, 15 years ago)

patch that maybe solves the problem

  • cpp_macromap.hpp

     
    426426
    427427IteratorT it = begin;
    428428string_type name ((*it).get_value());
    429 typename defined_macros_type::iterator cit(current_macros -> find(name));
     429typename defined_macros_type::iterator cit;
    430430
    431431    if (++it != end) {
    432432    // there should be only one token as the inspected name
     
    434434            impl::get_full_name(begin, end).c_str(), main_pos);
    435435        return false;
    436436    }
    437     return cit != current_macros -> end();
     437    return is_defined(name, cit, 0);
    438438}
    439439
    440440///////////////////////////////////////////////////////////////////////////////
     
    445445macromap<ContextT>::is_defined(StringT const &str) const
    446446{
    447447string_type name (str.c_str());
    448 typename defined_macros_type::iterator cit(current_macros -> find(name));
     448typename defined_macros_type::iterator cit;
    449449
    450     return cit != current_macros -> end();
     450    return is_defined(name, cit, 0);
    451451}
    452452
    453453///////////////////////////////////////////////////////////////////////////////