www.gusucode.com > private工具箱matlab源码程序 > private/sf_echo_generating.m
function sf_echo_generating( ~, fullFileName, printFullPath) % Copyright 1995-2009 The MathWorks, Inc. % $Revision: 1.9.2.6 $ $Date: 2013/09/10 12:31:29 $ if(nargin<3) printFullPath = 0; end % Note: Need the extra space at the end of the display line so that % the hyperlink hand is termintated correctly when moving to % the right of the hyperlinked diagnostic line. [filePath,fileName,fileExt] = fileparts(fullFileName); if(printFullPath==0) sfprivate('sf_display',sprintf(' "%s%s"\n',fileName,fileExt)); else sfprivate('sf_display',sprintf(' "%s"\n',fullFileName)); end % delete the corresponding object file as % in order to get around gmake bugs with timestamp % checking on fast glnx machines G124842 if(ispc) objFile = fullfile(filePath,[fileName,'.obj']); else objFile = fullfile(filePath,[fileName,'.o']); end if(isfile(objFile)) warnState = warning('off', 'all'); warnRestore = onCleanup(@() warning(warnState)); try sfprivate('sf_delete_file', objFile); catch ME %#ok<NASGU> end end return;