summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDave Smith <dizzyd@dizzyd.com>2009-12-28 06:51:03 -0700
committerDave Smith <dizzyd@dizzyd.com>2009-12-28 06:51:03 -0700
commitd51479c37e76545786644516d53a9064a9134a1b (patch)
treecb3a8167b61e8a4414f136340025ee3fd38348f2 /include
parentc99e6da25061fbd5a6d829afb48833451fac8706 (diff)
downloadrebar-d51479c37e76545786644516d53a9064a9134a1b.tar.gz
Adding ?ABORT macro
Diffstat (limited to 'include')
-rw-r--r--include/rebar.hrl2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/rebar.hrl b/include/rebar.hrl
index 35de9f5..4ec3778 100644
--- a/include/rebar.hrl
+++ b/include/rebar.hrl
@@ -3,6 +3,8 @@
-define(FAIL, throw({error, failed})).
+-define(ABORT(Str, Args), ?ERROR(Str, Args), halt(1)).
+
-define(CONSOLE(Str, Args), io:format(Str, Args)).
-define(DEBUG(Str, Args), rebar_log:log(debug, Str, Args)).