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 unconditional 'if (argc < 2)' check in generated C code #1

Open
eriknyquist opened this issue Aug 6, 2024 · 0 comments
Open

Fix unconditional 'if (argc < 2)' check in generated C code #1

eriknyquist opened this issue Aug 6, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@eriknyquist
Copy link
Owner

Instead of having a fixed "argc < 2" check, this check should be based on the number of positional arguments. For example, if there are 3 positional arguments, then the check should be "if (argc < 4)", and if there are no positional arguments, then the check should be omitted entirely.

@eriknyquist eriknyquist self-assigned this Aug 6, 2024
@eriknyquist eriknyquist added the bug Something isn't working label Aug 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant