Skip to content
Snippets Groups Projects
Verified Commit 9b65d4b3 authored by Justin Carpentier's avatar Justin Carpentier
Browse files

lib: add a macro that makes se3 namespace deprecated

parent b66901e8
No related branches found
No related tags found
No related merge requests found
//
// 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__
//
// 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__
......@@ -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"
......
......@@ -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 && \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment