From 5e1d20c8d94193c7e6a2e0bbe4692cb90e025072 Mon Sep 17 00:00:00 2001 From: Houtan Bastani <houtan@dynare.org> Date: Thu, 9 Feb 2017 12:46:37 +0100 Subject: [PATCH] preprocessor: replace exit(1) with exit(EXIT_FAILURE) --- ComputingTasks.cc | 4 ++-- DynamicModel.cc | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ComputingTasks.cc b/ComputingTasks.cc index f12c4086..ca83e94e 100644 --- a/ComputingTasks.cc +++ b/ComputingTasks.cc @@ -1,5 +1,5 @@ /* - * Copyright (C) 2003-2016 Dynare Team + * Copyright (C) 2003-2017 Dynare Team * * This file is part of Dynare. * @@ -336,7 +336,7 @@ RamseyConstraintsStatement::writeOutput(ostream &output, const string &basename, break; default: cerr << "Ramsey constraints: this shouldn't happen." << endl; - exit(1); + exit(EXIT_FAILURE); } output << "', '"; it->expression->writeOutput(output); diff --git a/DynamicModel.cc b/DynamicModel.cc index 08dd2bc4..21b18d7a 100644 --- a/DynamicModel.cc +++ b/DynamicModel.cc @@ -5012,7 +5012,7 @@ DynamicModel::writeFirstDerivativesC_csr(const string &basename, bool cuda) cons break; default: 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); D.push_back(deriv); -- GitLab