RosettaCodeData/Task/Program-termination/Clojure/program-termination-2.clj

5 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