Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion src/nklib_parse_trans_vsn.erl
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ make_get_fun1() ->

%% @private
make_get_fun2() ->
Exp = case is_21_2() of
Exp = case is_21_3() of
true ->
"
do_config_get(Key, Default) ->
Expand Down Expand Up @@ -145,6 +145,15 @@ is_21_2() ->
is_21() andalso erlang:system_info(version) >= "10.2.1".


%% @private
is_21_3() ->
% Erlang 21.0: 10.0.8
% Erlang 21.1: 10.1.8
% Erlang 21.2: 10.2.1
% Erlang 21.3: 10.3
is_21() andalso erlang:system_info(version) >= "10.3".


%% @private
forms_replace_fun(Name, Arity, Spec, Forms) ->
forms_replace_fun(Forms, Name, Arity, Spec, []).
Expand Down