Skip to content

Commit

Permalink
Merge pull request #181 from e6nlaq:e6nlaq/issue180
Browse files Browse the repository at this point in the history
Changed exit code on error to -1
  • Loading branch information
e6nlaq authored Feb 9, 2023
2 parents 9539008 + 762c9a1 commit 966f852
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion aqua.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ inline void errorlog(vector<string> line, int linenum, int errorcode)

if (linenum + 2 < line.size())
co(to_string(linenum + 3) + "| " + line[linenum + 2]);
exit(errorcode);
exit(-1);

#pragma endregion
}
Expand Down
Binary file modified aqua.obj
Binary file not shown.
Binary file modified bin/x64/aqua.exe
Binary file not shown.
4 changes: 3 additions & 1 deletion main.aqua
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,6 @@ if :
end if

outf :
! true
! true

throw

0 comments on commit 966f852

Please sign in to comment.