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

Improve preprocessor handling #444

Merged
merged 2 commits into from
Oct 7, 2023

Conversation

kant2002
Copy link
Collaborator

@kant2002 kant2002 commented Oct 6, 2023

  • Expand simple macro definition indefinitely
  • Do not trigger #error when inside inactive #if's
  • Handle nested #if's
  • Handle greater/less then/or_equals
  • Make sure that we consume all preprocessor tokens as part of macro evaluation

- Expand simple macro definition indefinitely
- Do not trigger #error when inside inactive #if's
- Handle nested #if's
- Handle greater/less then/or_equals
- Make sure that we consume all preprocessor tokens as part of macro evaluation
@ForNeVeR ForNeVeR self-requested a review October 6, 2023 10:51
@ForNeVeR ForNeVeR self-assigned this Oct 6, 2023
Comment on lines 11 to 12
LessThen,
GreaterThen,
Copy link

@ptasev ptasev Oct 6, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Spelling: LessThan GreaterThan

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for keeping me in check

Copy link
Owner

@ForNeVeR ForNeVeR left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@ForNeVeR ForNeVeR merged commit 720b4cb into ForNeVeR:main Oct 7, 2023
3 checks passed
@kant2002 kant2002 deleted the kant/preprocessor-improvements branch September 8, 2024 06:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants