Verified Commit 4fefbb16 authored by Justin Carpentier's avatar Justin Carpentier
Browse files

macros: add macro to prevent warning when an argument is not intentionally used

parent 6ab91589
......@@ -49,6 +49,9 @@ namespace pinocchio
/// \brief Empty macro argument
#define PINOCCHIO_MACRO_EMPTY_ARG
/// \brief Helper to declare that a parameter is unused
#define PINOCCHIO_UNUSED_VARIABLE(var) (void)(var)
/// Ensure that a matrix (or vector) is of correct size (compile-time and run-time assertion)
#define PINOCCHIO_ASSERT_MATRIX_SPECIFIC_SIZE(type,M,nrows,ncols) \
EIGEN_STATIC_ASSERT( (type::RowsAtCompileTime == Eigen::Dynamic || type::RowsAtCompileTime == nrows) \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment