preprocessor: replace exit(1) with exit(EXIT_FAILURE)
parent
593d62a7c1
commit
edd2e98086
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2003-2016 Dynare Team
|
* Copyright (C) 2003-2017 Dynare Team
|
||||||
*
|
*
|
||||||
* This file is part of Dynare.
|
* This file is part of Dynare.
|
||||||
*
|
*
|
||||||
|
@ -336,7 +336,7 @@ RamseyConstraintsStatement::writeOutput(ostream &output, const string &basename,
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
cerr << "Ramsey constraints: this shouldn't happen." << endl;
|
cerr << "Ramsey constraints: this shouldn't happen." << endl;
|
||||||
exit(1);
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
output << "', '";
|
output << "', '";
|
||||||
it->expression->writeOutput(output);
|
it->expression->writeOutput(output);
|
||||||
|
|
|
@ -5012,7 +5012,7 @@ DynamicModel::writeFirstDerivativesC_csr(const string &basename, bool cuda) cons
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
std::cerr << "This case shouldn't happen" << std::endl;
|
std::cerr << "This case shouldn't happen" << std::endl;
|
||||||
exit(1);
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
derivative deriv(col_id + eq*cols_nbr,col_id,eq,it->second);
|
derivative deriv(col_id + eq*cols_nbr,col_id,eq,it->second);
|
||||||
D.push_back(deriv);
|
D.push_back(deriv);
|
||||||
|
|
Loading…
Reference in New Issue