Skip to content

Commit

Permalink
Merge pull request #2889 from ariel-anieli/deprecated-fun-stacktrace
Browse files Browse the repository at this point in the history
Removed fun_stacktrace
  • Loading branch information
ferd authored May 21, 2024
2 parents 6ce3505 + 58be63e commit 4594b00
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
3 changes: 1 addition & 2 deletions apps/rebar/rebar.config
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@

{erl_opts, [warnings_as_errors,
{platform_define, "^(2[1-9])|(20\\\\.3)", filelib_find_source},
{platform_define, "^(1|(20))", no_customize_hostname_check},
{platform_define, "^(20)", fun_stacktrace}
{platform_define, "^(1|(20))", no_customize_hostname_check}
]}.

{edoc_opts, [preprocess]}.
Expand Down
4 changes: 0 additions & 4 deletions apps/rebar/src/rebar.hrl
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,7 @@
-type rebar_digraph() :: digraph:graph().
-type rebar_set() :: sets:set().

-ifdef(fun_stacktrace).
-define(WITH_STACKTRACE(T, R, S), T:R -> S = erlang:get_stacktrace(),).
-else.
-define(WITH_STACKTRACE(T, R, S), T:R:S ->).
-endif.

-define(GRAPH_VSN, 2).
-type v() :: {digraph:vertex(), term()} | 'false'.
Expand Down

0 comments on commit 4594b00

Please sign in to comment.