dynare/mex/sources/ms-sbvar/modify_for_mex.cc

41 lines
973 B
C++
Raw Normal View History

/*
* Copyright © 2010-2013 Dynare Team
*
* This file is part of Dynare.
*
* Dynare is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Dynare is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Dynare. If not, see <http://www.gnu.org/licenses/>.
*/
2010-04-28 09:47:37 +02:00
#if defined(MATLAB_MEX_FILE) || defined(OCTAVE_MEX_FILE)
2013-04-15 17:18:38 +02:00
2019-12-20 14:50:19 +01:00
# include <dynmex.h>
2013-04-15 17:18:38 +02:00
2019-12-20 14:50:19 +01:00
# ifdef __cplusplus
2010-09-17 19:08:58 +02:00
extern "C"
{
2019-12-20 14:50:19 +01:00
# endif
2010-09-17 19:08:58 +02:00
int constant_seed;
2010-05-28 13:30:44 +02:00
2010-09-17 19:08:58 +02:00
void
msExit(int status)
2010-09-17 19:08:58 +02:00
{
throw "Error in MS-SBVAR MEX file.\n";
2010-09-17 19:08:58 +02:00
}
2019-12-20 14:50:19 +01:00
# ifdef __cplusplus
2010-04-28 09:47:37 +02:00
}
2019-12-20 14:50:19 +01:00
# endif
#endif