Use same default variable cleaning rule under Octave as under MATLAB ⩾ 8.6

“clearvars” has been implemented in Octave since version 5.
master
Sébastien Villemot 2023-09-27 12:24:45 +02:00
parent a8ea57dd63
commit ef57a28b5f
No known key found for this signature in database
GPG Key ID: 2CECE9350ECEBE4A
1 changed files with 1 additions and 1 deletions

View File

@ -823,7 +823,7 @@ ModFile::writeMOutput(const string &basename, bool clear_all, bool clear_global,
mOutputFile << "warning off" << endl; // This will be executed *after* function warning_config()
if (clear_all)
mOutputFile << "if isoctave || matlab_ver_less_than('8.6')" << endl
mOutputFile << "if ~isoctave && matlab_ver_less_than('8.6')" << endl
<< " clear all" << endl
<< "else" << endl
<< " clearvars -global" << endl