Skip to content

Commit

Permalink
Update wave.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveBeeblebrox committed Mar 20, 2024
1 parent 3e7e59e commit d3fe53f
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/wave.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,24 +112,14 @@ class wave_hooks : public boost::wave::context_policies::eat_whitespace<TokenT>
iterator_type end = ctx.end();

for (iterator_type it = ctx.begin(source.begin(), source.end()); it <= end && boost::wave::token_id(*it) != boost::wave::T_EOF; it++) {
std::cerr<<"ack"<<std::endl;
pragma.push_back(*it);
}

pending.splice(pending.begin(), pragma);
ctx.pop_iteration_context();

return true;
} catch (boost::wave::cpp_exception const& e) {
std::cerr<<e.description()<<std::endl;
}
catch (boost::wave::cpplexer::lexing_exception const& e) {
std::cerr<<e.description()<<std::endl;
}
catch (std::exception const& e) {
std::cerr<<e.what()<<std::endl;
} catch(...) {
std::cerr<<"unknown error"<<std::endl;
return false;
}
}
Expand Down Expand Up @@ -298,7 +288,6 @@ std::string _preprocess_text(std::string text, const char* p_filename, const std
while (first != last) {
current_position = (*first).get_position();
out_stream << (*first).get_value();
auto functor = first.get_functor();
++first;
}
finished = true;
Expand Down

0 comments on commit d3fe53f

Please sign in to comment.