Skip to content

Commit

Permalink
Only simplify Windows's DEBUG_NEW macro on Windows platform
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasjfox committed Jan 18, 2015
1 parent cd4c297 commit 9a5260a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/tokenize.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1955,6 +1955,9 @@ void Tokenizer::simplifySQL()

void Tokenizer::simplifyDebugNew()
{
if (!_settings->isWindowsPlatform())
return;

// convert Microsoft DEBUG_NEW macro to new
for (Token *tok = list.front(); tok; tok = tok->next()) {
if (tok->str() == "DEBUG_NEW")
Expand Down

0 comments on commit 9a5260a

Please sign in to comment.