Skip to content

Commit

Permalink
Removed fun_stacktrace
Browse files Browse the repository at this point in the history
* introduced by 5f9b429
* CI/CD uses R24 and onwards
* erlang:get_stacktrace/0 removed in R23.

[1] https://erlang.org/documentation/doc-12.0-rc2/doc/general_info/removed.html#functions-removed-in-otp-23
  • Loading branch information
Ariel Otilibili committed May 21, 2024
1 parent 6ce3505 commit 58be63e
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 58be63e

Please sign in to comment.