From d51479c37e76545786644516d53a9064a9134a1b Mon Sep 17 00:00:00 2001 From: Dave Smith Date: Mon, 28 Dec 2009 06:51:03 -0700 Subject: Adding ?ABORT macro --- include/rebar.hrl | 2 ++ 1 file changed, 2 insertions(+) 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)). -- cgit v1.1