function N = getNumInputs(obj)
%MATLAB Code Generation Library function.
% Implement getNumInputs function for System objects.

%   Copyright 2007-2014 The MathWorks, Inc.
%#codegen

coder.inline('always');

eml_invariant(nargin == 1, ...
    'MATLAB:system:codeGenNoSystemObjectInput', 'getNumInputs');

checkSystemObjectInput(obj, 'getNumInputs');

coder.extrinsic('eml_try_catch');
[errId, errMsg, N] = coder.const(@eml_try_catch,'getNumInputs', eml_sea_get_obj(obj));
eml_lib_assert(isempty(errMsg), errId, errMsg);
