Implement mxIsScalar() for MATLAB < R2015a (8.5)

time-shift
Sébastien Villemot 2019-06-25 20:28:59 +02:00
parent 7c39b12b7b
commit e96f180c50
No known key found for this signature in database
GPG Key ID: 2CECE9350ECEBE4A
1 changed files with 5 additions and 1 deletions

View File

@ -1,5 +1,5 @@
/*
* Copyright © 2009-2014 Dynare Team
* Copyright © 2009-2019 Dynare Team
*
* This file is part of Dynare.
*
@ -40,4 +40,8 @@
} while (0)
#endif
#if defined(MATLAB_MEX_FILE) && MATLAB_VERSION < 0x0805
# define mxIsScalar(x) (mxGetM(x) == 1 && mxGetN(x) == 1)
#endif
#endif