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
c4eb44c7
Verified
Commit
c4eb44c7
authored
Nov 16, 2019
by
Justin Carpentier
Browse files
python/model: handle Python3 namings change
parent
dfa3f949
Changes
1
Hide whitespace changes
Inline
Side-by-side
bindings/python/multibody/model.hpp
View file @
c4eb44c7
...
...
@@ -24,6 +24,17 @@
EIGENPY_DEFINE_STRUCT_ALLOCATOR_SPECIALIZATION
(
pinocchio
::
Model
)
#if PY_MAJOR_VERSION >= 3
#ifndef PyString_Check
#define PyString_Check_notDefined
#define PyString_Check PyBytes_Check
#endif
#ifndef PyString_AsString
#define PyString_AsString_notDefined
#define PyString_AsString PyBytes_AsString
#endif
#endif
namespace
pinocchio
{
namespace
python
...
...
@@ -330,5 +341,16 @@ namespace pinocchio
}}
// namespace pinocchio::python
#if PY_MAJOR_VERSION >= 3
#ifdef PyString_Check_notDefined
#undef PyString_Check
#undef PyString_Check_notDefined
#endif
#ifdef PyString_AsString_notDefined
#undef PyString_AsString
#undef PyString_AsString_notDefined
#endif
#endif
#endif // ifndef __pinocchio_python_model_hpp__
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