Preprocessor: delete _steadystate2.m file from previous run if exists

Closes: #224
issue#70
Sébastien Villemot 2011-11-25 15:11:02 +01:00
parent 411a7fa683
commit bb39de5496
1 changed files with 3 additions and 0 deletions

View File

@ -501,6 +501,9 @@ ModFile::writeOutputFiles(const string &basename, bool clear_all, bool console,
string statfile = basename + "_static.m";
unlink(statfile.c_str());
string steadystatefile = basename + "_steadystate2.m";
unlink(steadystatefile.c_str());
if (!use_dll)
{
mOutputFile << "erase_compiled_function('" + basename + "_static');" << endl;