Skip to content
This repository has been archived by the owner on Nov 8, 2022. It is now read-only.

Commit

Permalink
flush STDOUT so debug prints work in case of crash
Browse files Browse the repository at this point in the history
  • Loading branch information
Ehsan Totoni committed Sep 28, 2016
1 parent dd88f04 commit c242b29
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/cgen.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2961,6 +2961,7 @@ function from_root_entry(ast, functionName::AbstractString, argtyps, array_types
end
gen_j2c_array_new *= "default:\nfprintf(stderr, \"j2c_array_new called with invalid key %d\", key);\nassert(false);\nbreak;\n}\nreturn a;\n}\n"
c *= gen_j2c_array_new
flush(STDOUT)
c
end

Expand Down

0 comments on commit c242b29

Please sign in to comment.