Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

added missing hrl files

  • Loading branch information...
commit cf0d4d6e0276b07f171be5d4c4043271b648501a 1 parent d1c9d3a
@gregorej authored
Showing with 26 additions and 0 deletions.
  1. +14 −0 include/rebar.hrl
  2. +12 −0 include/rebar.hrl~
View
14 include/rebar.hrl
@@ -0,0 +1,14 @@
+% this is a copy or rebar.hrl from rebar repo
+
+-define(FAIL, throw({error, failed})).
+
+-define(ABORT(Str, Args), rebar_utils:abort(Str, Args)).
+
+-define(CONSOLE(Str, Args), io:format(Str, Args)).
+
+-define(DEBUG(Str, Args), rebar_log:log(debug, Str, Args)).
+-define(INFO(Str, Args), rebar_log:log(info, Str, Args)).
+-define(WARN(Str, Args), rebar_log:log(warn, Str, Args)).
+-define(ERROR(Str, Args), rebar_log:log(error, Str, Args)).
+
+-define(FMT(Str, Args), lists:flatten(io_lib:format(Str, Args))).
View
12 include/rebar.hrl~
@@ -0,0 +1,12 @@
+-define(FAIL, throw({error, failed})).
+
+-define(ABORT(Str, Args), rebar_utils:abort(Str, Args)).
+
+-define(CONSOLE(Str, Args), io:format(Str, Args)).
+
+-define(DEBUG(Str, Args), rebar_log:log(debug, Str, Args)).
+-define(INFO(Str, Args), rebar_log:log(info, Str, Args)).
+-define(WARN(Str, Args), rebar_log:log(warn, Str, Args)).
+-define(ERROR(Str, Args), rebar_log:log(error, Str, Args)).
+
+-define(FMT(Str, Args), lists:flatten(io_lib:format(Str, Args))).
Please sign in to comment.
Something went wrong with that request. Please try again.