Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

codeload.py: #ifdef and #ifndef broken #448

Closed
TG9541 opened this issue Jul 10, 2022 · 0 comments
Closed

codeload.py: #ifdef and #ifndef broken #448

TG9541 opened this issue Jul 10, 2022 · 0 comments
Assignees
Labels

Comments

@TG9541
Copy link
Owner

TG9541 commented Jul 10, 2022

I'm not sure when this bug was introduced ... since #ifdef and #ifndef once used to work.

The following sequence at line 223:

                   txCon = notInDictionary(tstWord) ^ (cndWord == 'ifdef')
                    vprint('CX #' + cndWord, tstWord + ' (', txCon, ') ' + line)
                    if not txCon:
                        continue

needs to be changed to:

                    txCon = bool(notInDictionary(tstWord)) ^ (cndWord == 'ifdef')
                    vprint('CX #' + cndWord + ' ' + tstWord + ' (' + str(txCon) +  ') ' + line)
                    if not txCon:
                        continue
@TG9541 TG9541 self-assigned this Jul 10, 2022
@TG9541 TG9541 added the bug label Jul 10, 2022
@TG9541 TG9541 changed the title codeload.py: #idef and #ifndef broken codeload.py: #ifdef and #ifndef broken Jul 10, 2022
@TG9541 TG9541 closed this as completed in 022c78a Jul 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant