2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-27 07:02:15 +00:00

More converter centralization

[SVN r14487]
This commit is contained in:
Dave Abrahams
2002-07-17 01:54:58 +00:00
parent 134bc44c45
commit 244e0fa5e6
13 changed files with 369 additions and 240 deletions

View File

@@ -7,16 +7,16 @@
namespace boost { namespace python {
BOOST_PYTHON_DECL detail::new_reference long_::call(object const& arg)
BOOST_PYTHON_DECL detail::new_non_null_reference long_::call(object const& arg)
{
return (detail::new_reference)PyObject_CallFunction(
return (detail::new_non_null_reference)PyObject_CallFunction(
(PyObject*)&PyLong_Type, "(O)",
arg.ptr());
}
BOOST_PYTHON_DECL detail::new_reference long_::call(object const& arg, object const& base)
BOOST_PYTHON_DECL detail::new_non_null_reference long_::call(object const& arg, object const& base)
{
return (detail::new_reference)PyObject_CallFunction(
return (detail::new_non_null_reference)PyObject_CallFunction(
(PyObject*)&PyLong_Type, "(OO)",
arg.ptr(), base.ptr());
}