%implements SubSystem "C"
%function BlockInstanceSetup(block, system) void
%<LibBlockSetIsExpressionCompliant(block)>
%endfunction
%function BlockInstanceData(ssBlock, parentSystem) Output
%assign childSystem = ::CompiledModel.System[CallSiteInfo.SystemIdx]
%openfile bufferSS
%foreach blkIdx = childSystem.NumBlocks
%openfile buffer
%<GENERATE(childSystem.Block[blkIdx], "BlockInstanceData", childSystem)>
%closefile buffer
%if WHITE_SPACE(buffer) == 0
{
/
%<buffer>/
}
%endif
%endforeach
%closefile bufferSS
%if WHITE_SPACE(bufferSS) == 0
/* Blocks in %<childSystem.Type> subsystem: '%<ssBlock.Name>' */ /
%<bufferSS>/
%endif
%endfunction