diff options
author | Fred Hebert <mononcqc@ferd.ca> | 2014-06-23 13:48:49 -0400 |
---|---|---|
committer | Fred Hebert <mononcqc@ferd.ca> | 2014-06-23 13:48:49 -0400 |
commit | 0b1e6b3779024e1c4faf4b0e4b778d6d9d99a716 (patch) | |
tree | 9682fb55216d89faf3e10dd456f6b62b6c62c375 /include | |
parent | 24ce11c3811424d7ee50d8ce59c00ceb3fc6bb2f (diff) |
Revert "Merge pull request #281 from tuncer/rebar-h-internal"
This reverts commit 07e2232847baa634b7d09bdb87dafda6c6bcc4a4, reversing
changes made to 37cf470ae9a07cdd2e0769f3af9a8b89fcde8db0.
Diffstat (limited to 'include')
-rw-r--r-- | include/rebar.hrl | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/rebar.hrl b/include/rebar.hrl new file mode 100644 index 0000000..b19fdd3 --- /dev/null +++ b/include/rebar.hrl @@ -0,0 +1,14 @@ +%% TODO: rename FAIL to ABORT once we require at least R13B04 for +%% building rebar. Macros with different arity were not supported by the +%% compiler before 13B04. +-define(FAIL, rebar_utils:abort()). +-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(standard_error, error, Str, Args)). + +-define(FMT(Str, Args), lists:flatten(io_lib:format(Str, Args))). |