function mustExportChartFunctions = export_chart_functions(chart)

% Copyright 1995-2011 The MathWorks, Inc.

rt = sfroot;
chartObj = rt.idToHandle(chart);
mustExportChartFunctions = 0;
if strcmp(class(chartObj), 'Stateflow.Chart') && chartObj.ExportChartFunctions %#ok
mustExportChartFunctions = 1;
end