Skip to content

Commit

Permalink
tell compiler that @print_and_throw terminates the program.
Browse files Browse the repository at this point in the history
  • Loading branch information
MasonProtter committed Nov 13, 2023
1 parent 21c5467 commit 38338cf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "StaticCompiler"
uuid = "81625895-6c0f-48fc-b932-11a18313743c"
authors = ["Tom Short and contributors"]
version = "0.6"
version = "0.6.1"

[deps]
Clang_jll = "0ee61d77-7f21-5576-8119-9fcc46b10100"
Expand Down
2 changes: 1 addition & 1 deletion src/quirks.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ libcexit(x::Int32) = @symbolcall exit(x::Int32)::Nothing
macro print_and_throw(err)
quote
println($err)
libcexit(Int32(1))
libcexit(Int32(1))::Union{}
end
end

Expand Down

0 comments on commit 38338cf

Please sign in to comment.