Skip to content

Commit

Permalink
fixes #448 codeload.py #ifdef and #ifndef
Browse files Browse the repository at this point in the history
  • Loading branch information
TG9541 committed Jul 10, 2022
1 parent 81e7f75 commit 022c78a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/codeload.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,8 +220,8 @@ def upload(path):
cndWord = m.group(1).lower()
tstWord = m.group(2)
line = m.group(3)
txCon = notInDictionary(tstWord) ^ (cndWord == 'ifdef')
vprint('CX #' + cndWord, tstWord + ' (', txCon, ') ' + line)
txCon = bool(notInDictionary(tstWord)) ^ (cndWord == 'ifdef')
vprint('CX #' + cndWord + ' ' + tstWord + ' (' + str(txCon) + ') ' + line)
if not txCon:
continue

Expand Down

0 comments on commit 022c78a

Please sign in to comment.