Skip to content

Commit

Permalink
Fix failing CI
Browse files Browse the repository at this point in the history
  • Loading branch information
g-andrade committed Mar 16, 2024
1 parent 8bf377f commit 287756d
Showing 1 changed file with 23 additions and 4 deletions.
27 changes: 23 additions & 4 deletions src/erlzord.erl
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,29 @@
encode/4,
decode/4]).

-deprecated({config, 3, "Use config/1 instead"}).
-deprecated({decode, 2, "Use decode_tuple/2 or decode_list/2 instead"}).
-deprecated({encode, 4, "Use encode/3 instead"}).
-deprecated({decode, 4, "Use decode_tuple/4 or decode_list/4 instead"}).
-ifndef(OTP_RELEASE).
-define(NO_XREF_DEPRECATED_WITH_MSG, true).
-else.
-if(?OTP_RELEASE =< 22).
-define(NO_XREF_DEPRECATED_WITH_MSG, true).
-endif.
-endif.

-ifdef(NO_XREF_DEPRECATED_WITH_MSG).
-deprecated([
{config, 3},
{decode, 2},
{encode, 4},
{decode, 4}
]).
-else.
-deprecated([
{config, 3, "Use config/1 instead"},
{decode, 2, "Use decode_tuple/2 or decode_list/2 instead"},
{encode, 4, "Use encode/3 instead"},
{decode, 4, "Use decode_tuple/4 or decode_list/4 instead"}
]).
-endif.

%% ------------------------------------------------------------------
%% Macro Definitions
Expand Down

0 comments on commit 287756d

Please sign in to comment.