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

Add compilation type checks (hex/bit, with/out n) #245

Open
tomhea opened this issue Oct 20, 2023 · 0 comments
Open

Add compilation type checks (hex/bit, with/out n) #245

tomhea opened this issue Oct 20, 2023 · 0 comments
Labels
backlog This should be worked on, someday.. enhancement New feature or request

Comments

@tomhea
Copy link
Owner

tomhea commented Oct 20, 2023

Check in compilation time if you misuse a macro:

  • use a hex macro on a bit variable, or vice versa (2 checks).
  • use a "n" macro (first parameter is "n") on a hex.hex and not a hex.vec. or use a non "n" macro on a hex.vec. or those two for the bit namespace (4 checks)

It can be in a '-t' (--type_check) flag that's by default is true, in the assembly function.

It will fix a lot of future bugs in development, as a common bug is using a non-"n" function on a vector variable.

@tomhea tomhea added the enhancement New feature or request label Oct 20, 2023
@tomhea tomhea added the backlog This should be worked on, someday.. label Nov 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backlog This should be worked on, someday.. enhancement New feature or request
Projects
Development

No branches or pull requests

1 participant