RosettaCodeData/Task/Program-termination/Clojure/program-termination-2.clj
Ingy döt Net b83f433714 tasks a-s
2013-04-10 23:57:08 -07:00

4 lines
172 B
Clojure

(if problem
(-> Runtime (. getRuntime) (. halt integerErrorCode)))
; conventionally, error code 0 is the code for "OK",
; while anything else is an actual problem