You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by va...@apache.org on 2021/04/18 16:21:56 UTC
[couchdb] 01/01: Swap OTP_VERSION with OTP_RELEASE macro
This is an automated email from the ASF dual-hosted git repository.
vatamane pushed a commit to branch otp-version-to-otp-release
in repository https://gitbox.apache.org/repos/asf/couchdb.git
commit 1d3a8926a8486165e47113d8ffccd0d52aedf322
Author: Nick Vatamaniuc <va...@apache.org>
AuthorDate: Sun Apr 18 12:20:44 2021 -0400
Swap OTP_VERSION with OTP_RELEASE macro
OTP_RELEASE is the one mentioned in:
https://erlang.org/doc/reference_manual/macros.html#predefined-macros
---
src/couch/include/couch_db.hrl | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/couch/include/couch_db.hrl b/src/couch/include/couch_db.hrl
index 2828322..019c205 100644
--- a/src/couch/include/couch_db.hrl
+++ b/src/couch/include/couch_db.hrl
@@ -219,7 +219,7 @@
-type sec_props() :: [tuple()].
-type sec_obj() :: {sec_props()}.
-%% Erlang/OTP 21 deprecates and 23 removes get_stacktrace(), so
+%% Erlang/OTP 21 deprecates and 23 removes get_stacktrace(), so
%% we have to monkey around until we can drop support < 21.
%% h/t https://github.com/erlang/otp/pull/1783#issuecomment-386190970
@@ -234,7 +234,7 @@
% Get the stacktrace in a way that is backwards compatible
% OTP_VERSION is only available in OTP 21 and later, so we don’t need
% to do any other version magic here.
--ifdef(OTP_VERSION).
+-ifdef(OTP_RELEASE).
-define(STACKTRACE(ErrorType, Error, Stack),
ErrorType:Error:Stack ->).
-else.