Skip to content

Commit

Permalink
Adding ?ABORT macro
Browse files Browse the repository at this point in the history
  • Loading branch information
dizzyd committed Dec 28, 2009
1 parent c99e6da commit d51479c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/rebar.hrl
Expand Up @@ -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)).
Expand Down

0 comments on commit d51479c

Please sign in to comment.