Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
nippur72 committed Apr 10, 2021
1 parent 475dea5 commit 06a710d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ifdef-loader",
"version": "2.2.0",
"version": "2.2.1",
"description": "",
"main": "ifdef-loader.js",
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion preprocessor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ function apply_if(lines: string[], ifBlock: IfBlock, defs: OptionObject, verbose

const log = (condition: string, outcome: boolean) => {
if(verbose) {
console.log(`#if block lines [${ifBlock.line_if + 1}-${ifBlock.line_endif + 1}]: Condition '${condition}' is ${outcome ? 'TRUE' : 'FALSE'}. ${includeRange != null ? `Including lines [${includeRange[0] + 1}-${includeRange[1] + 1}]` : 'Excluding everything'} (${filePath})`);
console.log(`#if block lines [${ifBlock.line_if + 1}-${ifBlock.line_endif + 1}]: Condition '${condition}' is ${outcome ? 'TRUE' : 'FALSE'}. ${includeRange != null ? `Including lines [${includeRange.from + 1}-${includeRange.to + 1}]` : 'Excluding everything'} (${filePath})`);
}
};

Expand Down

0 comments on commit 06a710d

Please sign in to comment.