Skip to content

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

Open
@eriknyquist

Description

@eriknyquist

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.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions