File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change 11classdef Backend < matlab .mixin .SetGet
22
33properties (Constant )
4- optionalBackends = [" perl " , " python " , " dotnet " , " java " ]
4+ optionalBackends = [" java " , " perl " , " python " , " dotnet " ]
55namespace = " stdlib"
66end
77
1919 backendReq (1 ,: ) string = string.empty
2020end
2121
22- for i = 1 : numel(self .optionalBackends )
23- f = str2func(sprintf(' %s .has_%s ' , self .namespace , self .optionalBackends(i )));
24- if f()
25- self.backends = [self .optionalBackends(i ), self .backends ];
22+ if isempty(backendReq ) || ~isscalar(backendReq )
23+ for i = 1 : numel(self .optionalBackends )
24+ f = str2func(sprintf(' %s .has_%s ' , self .namespace , self .optionalBackends(i )));
25+ if f()
26+ self.backends = [self .optionalBackends(i ), self .backends ];
27+ end
2628 end
2729end
2830
2931if strlength(functionName )
3032 self.func = self .getFunc(functionName , backendReq );
3133end
34+
3235end
3336
3437
You can’t perform that action at this time.
0 commit comments