Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bob
bob.ap
Commits
98e07d1d
Commit
98e07d1d
authored
Mar 23, 2014
by
André Anjos
💬
Browse files
Use make_safe()
parent
498f7977
Changes
1
Hide whitespace changes
Inline
Side-by-side
xbob/ap/version.cpp
View file @
98e07d1d
...
...
@@ -90,31 +90,13 @@ static PyObject* build_version_dictionary() {
PyObject
*
retval
=
PyDict_New
();
if
(
!
retval
)
return
0
;
auto
retval_
=
make_safe
(
retval
);
if
(
!
dict_steal
(
retval
,
"Boost"
,
boost_version
()))
{
Py_DECREF
(
retval
);
return
0
;
}
if
(
!
dict_steal
(
retval
,
"Compiler"
,
compiler_version
()))
{
Py_DECREF
(
retval
);
return
0
;
}
if
(
!
dict_steal
(
retval
,
"Python"
,
python_version
()))
{
Py_DECREF
(
retval
);
return
0
;
}
if
(
!
dict_steal
(
retval
,
"Bob"
,
bob_version
()))
{
Py_DECREF
(
retval
);
return
0
;
}
if
(
!
dict_steal
(
retval
,
"NumPy"
,
numpy_version
()))
{
Py_DECREF
(
retval
);
return
0
;
}
if
(
!
dict_steal
(
retval
,
"Boost"
,
boost_version
()))
return
0
;
if
(
!
dict_steal
(
retval
,
"Compiler"
,
compiler_version
()))
return
0
;
if
(
!
dict_steal
(
retval
,
"Python"
,
python_version
()))
return
0
;
if
(
!
dict_steal
(
retval
,
"Bob"
,
bob_version
()))
return
0
;
if
(
!
dict_steal
(
retval
,
"NumPy"
,
numpy_version
()))
return
0
;
return
retval
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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