function checkSystemObjectInput(obj, methodName)
%MATLAB Code Generation Library function.
% Implement error checking for System objects.

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

coder.inline('always');
coder.internal.allowEnumInputs;

eml_invariant(coder.const(isa(obj, 'matlab.system.SystemAdaptor')), ...
    'MATLAB:system:codeGenNotSystemObjectInput', methodName);
