Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:18
eper
eper-0.99.1-try_with_stack.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File eper-0.99.1-try_with_stack.patch of Package eper
diff -Ndurp eper-0.99.1/src/try_with_stack.hrl eper-0.99.1-try_with_stack/src/try_with_stack.hrl --- eper-0.99.1/src/try_with_stack.hrl 2018-07-06 16:31:34.000000000 +0300 +++ eper-0.99.1-try_with_stack/src/try_with_stack.hrl 2018-09-03 15:34:50.674313903 +0300 @@ -3,10 +3,15 @@ %% work around the deprecation of erlang:get_stacktrace/0 in erlang 21 %% @end --ifdef('OTP_RELEASE'). %% implies > OTP21 +-ifdef('OTP_RELEASE'). +-if(?OTP_RELEASE >= 21). %% implies > OTP21 -define(try_with_stack(F), try {ok,F} catch __C:__R:__S -> {__C,__R,__S} end). -else. -define(try_with_stack(F), try {ok,F} catch __C:__R -> {__C,__R,erlang:get_stacktrace()} end). +-endif. +-else. +-define(try_with_stack(F), + try {ok,F} catch __C:__R -> {__C,__R,erlang:get_stacktrace()} end). -endif.
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