Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:18
yaws
yaws-2.0.6-stacktrace.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File yaws-2.0.6-stacktrace.patch of Package yaws
diff -Ndurp yaws-2.0.6/include/yaws.hrl yaws-2.0.6-stacktrace/include/yaws.hrl --- yaws-2.0.6/include/yaws.hrl 2018-06-30 16:20:53.000000000 +0300 +++ yaws-2.0.6-stacktrace/include/yaws.hrl 2019-07-20 00:24:36.502499114 +0300 @@ -400,9 +400,12 @@ %% Typically used in error printouts as in: %% error_logger:format("Err ~p at ~p~n", [Reason, ?stack()]) -ifdef(OTP_RELEASE). +-if(?OTP_RELEASE >= 21). -define(stack(), try throw(1) catch _:_:ST -> ST end). -define(MAKE_ST(CATCH,STVAR,BODY), CATCH:STVAR -> BODY). --else. +-endif. +-endif. +-ifndef(MAKE_ST). -define(stack(), try throw(1) catch _:_ -> (fun erlang:get_stacktrace/0)() end). -define(MAKE_ST(CATCH,STVAR,BODY), CATCH -> STVAR = (fun erlang:get_stacktrace/0)(), BODY).
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor