Skip to content

Commit 7d4b837

Browse files
committed
Restore old header deprecation macro, under new name PINOCCHIO_DEPRECATED_MOVED_HEADER
1 parent 84e2591 commit 7d4b837

File tree

8 files changed

+10
-6
lines changed

8 files changed

+10
-6
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
2020

2121
- bindings/python : Add missing arg names in `visualizer-visitor.hpp`
2222
- use deprecation, warning macros already provided by jrl-cmakemodules
23+
- renamed `PINOCCHIO_PRAGMA_DEPRECATED_HEADER` to `PINOCCHIO_DEPRECATED_MOVED_HEADER`
2324

2425
### Removed
2526

include/pinocchio/algorithm/parallel/omp.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#define __pinocchio_algorithm_parallel_omp_hpp__
77

88
#include "pinocchio/macros.hpp"
9-
PINOCCHIO_DEPRECATED_HEADER(
9+
PINOCCHIO_DEPRECATED_MOVED_HEADER(
1010
pinocchio / algorithm / parallel / omp.hpp, pinocchio / utils / openmp.hpp)
1111
#include "pinocchio/utils/openmp.hpp"
1212

include/pinocchio/bindings/python/parsers/python.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#include "pinocchio/macros.hpp"
99

1010
// clang-format off
11-
PINOCCHIO_DEPRECATED_HEADER(pinocchio/bindings/python/parsers/python.hpp, pinocchio/parsers/python.hpp)
11+
PINOCCHIO_DEPRECATED_MOVED_HEADER(pinocchio/bindings/python/parsers/python.hpp, pinocchio/parsers/python.hpp)
1212
// clang-format on
1313

1414
#include "pinocchio/parsers/python.hpp"

include/pinocchio/macros.hpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,9 @@ namespace pinocchio
7777
#define PINOCCHIO_MAYBE_UNUSED
7878
#endif
7979

80+
#define PINOCCHIO_DEPRECATED_MOVED_HEADER(old_header, new_header) \
81+
PINOCCHIO_DEPRECATED_HEADER("#old_header has been replaced by #new_header.")
82+
8083
/// Ensure that a matrix (or vector) is of correct size (compile-time and run-time assertion)
8184
#define PINOCCHIO_ASSERT_MATRIX_SPECIFIC_SIZE(type, M, nrows, ncols) \
8285
EIGEN_STATIC_ASSERT( \

include/pinocchio/math/cppad.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#include "pinocchio/macros.hpp"
99

1010
// clang-format off
11-
PINOCCHIO_DEPRECATED_HEADER(pinocchio/math/cppad.hpp, pinocchio/autodiff/cppad.hpp)
11+
PINOCCHIO_DEPRECATED_MOVED_HEADER(pinocchio/math/cppad.hpp, pinocchio/autodiff/cppad.hpp)
1212
// clang-format on
1313

1414
#include "pinocchio/autodiff/cppad.hpp"

include/pinocchio/math/cppadcg.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#include "pinocchio/macros.hpp"
99

1010
// clang-format off
11-
PINOCCHIO_DEPRECATED_HEADER(pinocchio/math/cppadcg.hpp, pinocchio/codegen/cppadcg.hpp)
11+
PINOCCHIO_DEPRECATED_MOVED_HEADER(pinocchio/math/cppadcg.hpp, pinocchio/codegen/cppadcg.hpp)
1212
// clang-format on
1313

1414
#include "pinocchio/codegen/cppadcg.hpp"

include/pinocchio/parsers/sample-models.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#include "pinocchio/macros.hpp"
99

1010
// clang-format off
11-
PINOCCHIO_DEPRECATED_HEADER(pinocchio/parsers/sample-models.hpp, pinocchio/multibody/sample-models.hpp)
11+
PINOCCHIO_DEPRECATED_MOVED_HEADER(pinocchio/parsers/sample-models.hpp, pinocchio/multibody/sample-models.hpp)
1212
// clang-format on
1313

1414
#include "pinocchio/multibody/sample-models.hpp"

include/pinocchio/spatial/fcl-pinocchio-conversions.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#include "pinocchio/macros.hpp"
99

1010
// clang-format off
11-
PINOCCHIO_DEPRECATED_HEADER(
11+
PINOCCHIO_DEPRECATED_MOVED_HEADER(
1212
pinocchio/spatial/fcl-pinocchio-conversions.hpp,
1313
pinocchio/collision/fcl-pinocchio-conversions.hpp)
1414
// clang-format on

0 commit comments

Comments
 (0)