Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Stack Of Tasks
pinocchio
Commits
9b65d4b3
Verified
Commit
9b65d4b3
authored
Nov 08, 2018
by
Justin Carpentier
Browse files
lib: add a macro that makes se3 namespace deprecated
parent
b66901e8
Changes
4
Hide whitespace changes
Inline
Side-by-side
src/deprecated-namespaces.hpp
0 → 100644
View file @
9b65d4b3
//
// Copyright (c) 2018 INRIA
//
// This file is part of Pinocchio
// Pinocchio is free software: you can redistribute it
// and/or modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation, either version
// 3 of the License, or (at your option) any later version.
//
// Pinocchio 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 Lesser Public License for more details. You should have
// received a copy of the GNU Lesser General Public License along with
// Pinocchio If not, see
// <http://www.gnu.org/licenses/>.
#ifndef __se3_deprecated_namespaces_hpp__
#define __se3_deprecated_namespaces_hpp__
#ifdef PINOCCHIO_ENABLE_COMPATIBILITY_WITH_VERSION_1
#define se3 PINOCCHIO_PRAGMA_MESSAGE_CALL("The se3 namespace has been set to deprecated since version 2.0.0. Please use namespace pinocchio instead") pinocchio
#endif
#endif // ifndef __se3_deprecated_namespaces_hpp__
src/deprecation.hpp
0 → 100644
View file @
9b65d4b3
//
// Copyright (c) 2018 INRIA
//
// This file is part of Pinocchio
// Pinocchio is free software: you can redistribute it
// and/or modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation, either version
// 3 of the License, or (at your option) any later version.
//
// Pinocchio 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 Lesser Public License for more details. You should have
// received a copy of the GNU Lesser General Public License along with
// Pinocchio If not, see
// <http://www.gnu.org/licenses/>.
#ifndef __se3_deprecation_hpp__
#define __se3_deprecation_hpp__
#include "pinocchio/deprecated.hpp"
#include "pinocchio/deprecated-macros.hpp"
#include "pinocchio/deprecated-namespaces.hpp"
#endif // ifndef __se3_deprecation_hpp__
src/fwd.hpp
View file @
9b65d4b3
...
...
@@ -19,8 +19,7 @@
#define __se3_fwd_hpp__
#include "pinocchio/macros.hpp"
#include "pinocchio/deprecated-macros.hpp"
#include "pinocchio/deprecated.hpp"
#include "pinocchio/deprecation.hpp"
#include "pinocchio/warning.hpp"
#include "pinocchio/config.hpp"
...
...
src/macros.hpp
View file @
9b65d4b3
...
...
@@ -22,6 +22,12 @@
#define PINOCCHIO_WITH_CXX11_SUPPORT
#endif
#define PINOCCHIO_STRING_LITERAL(string) #string
/// \remarks The following two macros should be adapted for WIN32
#define PINOCCHIO_PRAGMA_MESSAGE(the_message) PINOCCHIO_STRING_LITERAL(message(the_message))
#define PINOCCHIO_PRAGMA_MESSAGE_CALL(the_message) _Pragma(PINOCCHIO_PRAGMA_MESSAGE(the_message))
/// \brief Macro to check the current Pinocchio version against a version provided by x.y.z
#define PINOCCHIO_VERSION_AT_LEAST(x,y,z) \
(PINOCCHIO_MAJOR_VERSION>x || (PINOCCHIO_MAJOR_VERSION>=x && \
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment