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 EvalString #113

Merged
merged 1 commit into from
Nov 14, 2024
Merged

Improve EvalString #113

merged 1 commit into from
Nov 14, 2024

Conversation

elliotgoodrich
Copy link
Owner

Make several improvements and fixes to EvalString.

  • Change the member variable to store the last text segment length (or 0 if the last section is a variable). This keeps things more understandable and doesn't lose any functionality.
  • Remove the initial Offset value pushed into EvalString in the constructor and clear() methods as this is not necessary.
  • Assert that text and variables passed in are not empty and check that this cannot happen (the Ninja lexer will complain that the file is not correct)
  • Add a natvis file for easy debugging.

Make several improvements and fixes to `EvalString`.

  * Change the member variable to store the last text segment length (or
    0 if the last section is a variable).  This keeps things more
    understandable and doesn't lose any functionality.
  * Remove the initial `Offset` value pushed into `EvalString` in the
    constructor and `clear()` methods as this is not necessary.
  * Assert that text and variables passed in are not empty and check
    that this cannot happen (the Ninja lexer will complain that the
    file is not correct)
  * Add a natvis file for easy debugging.
@elliotgoodrich elliotgoodrich merged commit 8e7ff72 into main Nov 14, 2024
8 checks passed
@elliotgoodrich elliotgoodrich deleted the simplify-evalstring branch November 14, 2024 06:29
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.

1 participant