'erlang 23 24 version, get_stacktrace problem, All related library need to upgrade?
I am trying to use erlang jit and webview function. It only exists in erlang 24. Because erlang 24's
erlang:get_stacktrace
not allowed to use, I have changed it in my application. Like rebar3, add one macro:
-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.
But when compiling again, I realized the all related applications of program should be changed, otherwise it's still impossible to use erlang jit and webview. Like lager application is not compatible with erlang 24.
Is it true? I must change other's application one by one if I want to you erlang 24 or up.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
