Adding ?ABORT macro

This commit is contained in:
Dave Smith 2009-12-28 06:51:03 -07:00
parent c99e6da250
commit d51479c37e

View file

@ -3,6 +3,8 @@
-define(FAIL, throw({error, failed})). -define(FAIL, throw({error, failed})).
-define(ABORT(Str, Args), ?ERROR(Str, Args), halt(1)).
-define(CONSOLE(Str, Args), io:format(Str, Args)). -define(CONSOLE(Str, Args), io:format(Str, Args)).
-define(DEBUG(Str, Args), rebar_log:log(debug, Str, Args)). -define(DEBUG(Str, Args), rebar_log:log(debug, Str, Args)).