function [y,hasOrMethod] = evaluateCustomOrMethod(orMethod,x,varargin) %#codegen
%% EVALUATECUSTOMORMETHOD Evaluates custom OR method.
%
%   [Y,HASORMETHOD] = EVALUATECUSTOMORMETHOD(ORMETHOD,X) Evaluates X with
%   ORMETHOD. HASORMETHOD is true if ORMETHOD exists.
%
%   Overload this function in a code generation directory for evaluating a
%   custom OR method. 
%
%   Examples
%     function [y,hasOrMethod] = evaluateCustomOrMethod(orMethod,x,varargin) %#codegen
%         y = -ones('like',x);
%         hasOrMethod = false;
%         if isequal(orMethod,uint8('customOrMethod'))
%             y(1) = customOrMethod(x,varargin{:});
%             hasOrMethod(1) = true;
%         end
%     end

%   Copyright 2018 The MathWorks, Inc. 

y = -ones('like',x);
hasOrMethod = false;
end