Skip to content

Commit

Permalink
use existing constant in simplifyHasInclude()
Browse files Browse the repository at this point in the history
  • Loading branch information
firewave committed Aug 10, 2023
1 parent a4964e8 commit aa7782a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion simplecpp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2521,7 +2521,7 @@ static std::string openHeader(std::ifstream &f, const simplecpp::DUI &dui, const
static void simplifyHasInclude(simplecpp::TokenList &expr, const simplecpp::DUI &dui)
{
for (simplecpp::Token *tok = expr.front(); tok; tok = tok->next) {
if (tok->str() != "__has_include")
if (tok->str() != HAS_INCLUDE)
continue;
simplecpp::Token *tok1 = tok->next;
if (!tok1) {
Expand Down

0 comments on commit aa7782a

Please sign in to comment.