function checkEmbeddedCoderInstalled
%CHECKEMBEDDEDCODERINSTALLED check the Embedded Coder product is installed
%
% This is an undocumented class. Its methods and properties are likely to
% change without warning from one release to the next.

% Copyright 2017-2021 The MathWorks, Inc.

ecoderVer = coder.make.internal.cachedVer('embeddedcoder');
if isempty(ecoderVer) && slsvTestingHook('EnableGRTSILTesting') == 0

% throw an error if Embedded Coder is not installed
DAStudio.error('PIL:pilverification:NoEcoderVersionInfo');
end
end