/* Copyright 2019 The MathWorks, Inc. */
%if EXISTS("_BLKIO_INTERNALAPI_") == 0
%assign _BLKIO_INTERNALAPI_ = 1
%function LibGetInputPortRecordIsValid(portIdx) void
%if TYPE(portIdx) == "String"
%assign errTxt = "portIdx cannot be a string"
%<LibBlockReportError([],errTxt)>
%endif
%endfunction
%function SLibBlockTypeSetupName(sysIdx, blkIdx) void
%assign BlockTypeSetupName = ""
%if Type == "Opaque"
%assign BlockTypeSetupName = "BlockTypeSetupForBlockType_Opaque"
%else
%assign BlockTypeSetupName = CGMODEL_ACCESS("Block.BlockTypeSetupName", sysIdx, blkIdx)
%endif
%return BlockTypeSetupName
%endfunction
%function SLibBlockInputSignalAllowScalarExpandedExpr(block, ipIdx) void
%return CGMODEL_ACCESS("Block.GetInputAllowScalarExpandedExpr", ...
block.BlockIdx[0], block.BlockIdx[2], ipIdx)
%endfunction
%function SLibSetBlockOutputSignalsAreNotExpr(block) void
% block.BlockIdx[0], block.BlockIdx[2])>
%endfunction
%function SLibSetBlockInputSignalIsNotExpr(block, portIdx) void
%if LibBlockInputSignalIsExpr(portIdx)
%
%endif
%endfunction
%function SLibBlockInputSignalDimensions(portIdx) void
%return CGMODEL_ACCESS("Block.SLibInputSignalDimensions", BlockIdx[0], BlockIdx[2], portIdx)
%endfunction
%endif