Skip to content

Commit

Permalink
Restore check for entrypoint argument in transpiled code
Browse files Browse the repository at this point in the history
  • Loading branch information
emiljapelt committed Mar 20, 2024
1 parent b0bd15a commit 85f152f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions compiler/lib/transpile.ml
Original file line number Diff line number Diff line change
Expand Up @@ -540,6 +540,7 @@ static inline void* stop() {
let main = "
int main(int argc, char *argv[]) {
if (argc < 2) { printf(\"No entrypoint specified\\n\"); return 1; }
program(argv[1], argc-2, argv+2);
return 0;
}
Expand Down

0 comments on commit 85f152f

Please sign in to comment.