您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

29 行
1.0 KiB

  1. %% TODO: rename FAIL to ABORT once we require at least R13B04 for
  2. %% building rebar. Macros with different arity were not supported by the
  3. %% compiler before 13B04.
  4. -define(FAIL, rebar_utils:abort()).
  5. -define(ABORT(Str, Args), rebar_utils:abort(Str, Args)).
  6. -define(CONSOLE(Str, Args), io:format(Str++"~n", Args)).
  7. -define(DEBUG(Str, Args), rebar_log:log(debug, Str, Args)).
  8. -define(INFO(Str, Args), rebar_log:log(info, Str, Args)).
  9. -define(WARN(Str, Args), rebar_log:log(warn, Str, Args)).
  10. -define(ERROR(Str, Args), rebar_log:log(error, Str, Args)).
  11. -define(FMT(Str, Args), lists:flatten(io_lib:format(Str, Args))).
  12. -define(DEFAULT_BASE_DIR, "").
  13. -define(DEFAULT_LIB_DIRS, ["_checkouts", "apps", "lib", "."]).
  14. -define(DEFAULT_DEPS_DIR, "_deps").
  15. -define(DEFAULT_PLUGINS_DIR, "_plugins").
  16. -define(DEFAULT_TEST_DEPS_DIR, "_tdeps").
  17. -define(DEFAULT_CONFIG_FILE, "rebar.config").
  18. -define(LOCK_FILE, "rebar.lock").
  19. -define(CONFIG_DIR, ".rebar3").
  20. -ifdef(namespaced_types).
  21. -type rebar_dict() :: dict:dict().
  22. -else.
  23. -type rebar_dict() :: dict().
  24. -endif.