Skip to content

Commit

Permalink
fix: lua feature discovery logic fix
Browse files Browse the repository at this point in the history
  • Loading branch information
allanbowe committed Feb 21, 2021
1 parent dff9e2f commit 818c0f5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions all.sas
Original file line number Diff line number Diff line change
Expand Up @@ -218,9 +218,11 @@ options noquotelenmax;
%put Supported features: PROCLUA;
%end;
%else %if &feature=PROCLUA %then %do;
/* https://blogs.sas.com/content/sasdummy/2015/08/03/using-lua-within-your-sas-programs */
%if &platform=SASVIYA %then 1;
%else %if "&sysver"="9.3" or "&sysver"="9.4" %then 1;
%else 0;
%else %if "&sysver"="9.2" or "&sysver"="9.3" %then 0;
%else %if "&SYSVLONG" < "9.04.01M3" %then 0;
%else 1;
%end;
%else %do;
-1
Expand Down
6 changes: 4 additions & 2 deletions base/mf_existfeature.sas
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,11 @@
%put Supported features: PROCLUA;
%end;
%else %if &feature=PROCLUA %then %do;
/* https://blogs.sas.com/content/sasdummy/2015/08/03/using-lua-within-your-sas-programs */
%if &platform=SASVIYA %then 1;
%else %if "&sysver"="9.3" or "&sysver"="9.4" %then 1;
%else 0;
%else %if "&sysver"="9.2" or "&sysver"="9.3" %then 0;
%else %if "&SYSVLONG" < "9.04.01M3" %then 0;
%else 1;
%end;
%else %do;
-1
Expand Down

0 comments on commit 818c0f5

Please sign in to comment.