mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-03-13 18:37:27 +08:00
erm.. use EIGEN_ONLY_USED_FOR_DEBUG() as it already exists.
This commit is contained in:
parent
618640bf2b
commit
79e9e3f24c
@ -214,9 +214,7 @@ template<typename Derived> class DenseBase
|
||||
*/
|
||||
void resize(int size)
|
||||
{
|
||||
#ifdef EIGEN_NO_DEBUG
|
||||
EIGEN_ARG_UNUSED(size);
|
||||
#endif
|
||||
EIGEN_ONLY_USED_FOR_DEBUG(size);
|
||||
ei_assert(size == this->size()
|
||||
&& "DenseBase::resize() does not actually allow to resize.");
|
||||
}
|
||||
@ -226,10 +224,8 @@ template<typename Derived> class DenseBase
|
||||
*/
|
||||
void resize(int rows, int cols)
|
||||
{
|
||||
#ifdef EIGEN_NO_DEBUG
|
||||
EIGEN_ARG_UNUSED(rows);
|
||||
EIGEN_ARG_UNUSED(cols);
|
||||
#endif
|
||||
EIGEN_ONLY_USED_FOR_DEBUG(rows);
|
||||
EIGEN_ONLY_USED_FOR_DEBUG(cols);
|
||||
ei_assert(rows == this->rows() && cols == this->cols()
|
||||
&& "DenseBase::resize() does not actually allow to resize.");
|
||||
}
|
||||
|
@ -89,10 +89,8 @@ template<typename Derived> class TriangularBase : public EigenBase<Derived>
|
||||
|
||||
void check_coordinates(int row, int col)
|
||||
{
|
||||
#ifdef EIGEN_NO_DEBUG
|
||||
EIGEN_ARG_UNUSED(row);
|
||||
EIGEN_ARG_UNUSED(col);
|
||||
#endif
|
||||
EIGEN_ONLY_USED_FOR_DEBUG(row);
|
||||
EIGEN_ONLY_USED_FOR_DEBUG(col);
|
||||
ei_assert(col>=0 && col<cols() && row>=0 && row<rows());
|
||||
ei_assert( (Mode==Upper && col>=row)
|
||||
|| (Mode==Lower && col<=row)
|
||||
|
@ -172,8 +172,6 @@
|
||||
#define EIGEN_UNUSED
|
||||
#endif
|
||||
|
||||
#define EIGEN_ARG_UNUSED(x) (void)x;
|
||||
|
||||
#if (defined __GNUC__)
|
||||
#define EIGEN_ASM_COMMENT(X) asm("#"X)
|
||||
#else
|
||||
|
Loading…
x
Reference in New Issue
Block a user