function checkHandleIfValid(h,methodName)
%

%   Copyright 2014-2020 The MathWorks, Inc.

if numel( h )>1
    error( message( 'coder_compile:toolchain:NonScalarToolchainInfoHandle', upper( methodName ), methodName ) );
end
end
