Skip to content
Snippets Groups Projects
Commit 2ac0e890 authored by MichelJuillard's avatar MichelJuillard
Browse files

another work-around for Octave 3.2 bug with "clear all"

parent e4c803d0
Branches
Tags
No related merge requests found
...@@ -443,11 +443,9 @@ ModFile::writeOutputFiles(const string &basename, bool clear_all, bool console, ...@@ -443,11 +443,9 @@ ModFile::writeOutputFiles(const string &basename, bool clear_all, bool console,
if (clear_all) if (clear_all)
{ {
mOutputFile << "if exist('OCTAVE_VERSION')" << endl mOutputFile << "clear all" << endl
<< " clear -all" << endl // this is a work-around for a bug in Octave 3.2
<< "else" << endl << "clear globals" << endl;
<< " clear all" << endl
<< "end" << endl;
} }
mOutputFile << "tic;" << endl mOutputFile << "tic;" << endl
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment