Skip to content

Commit

Permalink
Compile on OTP 27
Browse files Browse the repository at this point in the history
This commit fixes the following error when building `rebar_raw_resource`
on OTP 27.0-rc1:
"
_build/test/plugins/rebar_raw_resource/src/rebar_raw_resource.erl:54:9: badly formed 'define'
"

It looks like 'else' became a reserved keyword. In any case, the macro
in question is not being used.
  • Loading branch information
g-andrade committed Feb 18, 2024
1 parent a5971ac commit 21ac9b6
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/rebar_raw_resource.erl
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@
% For development only - you *really* don't want this defined!
%-define(RRR_DEBUG, true).

-define(else, 'true').
-define(is_min_tuple(Var, Min),
erlang:is_tuple(Var) andalso erlang:tuple_size(Var) >= Min).
-define(is_rec_type(Var, Type, Min),
Expand Down

0 comments on commit 21ac9b6

Please sign in to comment.