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

Fix macro operator precedence problem #30

Merged
merged 2 commits into from
Sep 23, 2024

Conversation

ping-ee
Copy link
Contributor

@ping-ee ping-ee commented Sep 23, 2024

Description

This PR fixes the macro operator precedence problem mentioned in #29. It ensures correct operator precedence in assertions to prevent logical errors caused by missing parentheses.

Changes

  • Wrapped exp with parentheses in macros such as ASSERT and FAIL_IF_NOT.
  • Added ASSERT to macro tests in two system verilog testsuites.

Note

Feel free to squash the commits during the merge if preferred.

This change ensures correct operator precedence in assertions to prevent logical errors caused by missing parentheses.
@dpretet dpretet merged commit 5dc682b into dpretet:master Sep 23, 2024
4 checks passed
@ping-ee ping-ee deleted the fix/macro-operator-precedence branch September 23, 2024 18:57
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.

2 participants