2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-26 06:42:27 +00:00

Beginning of callback implementation

[SVN r13135]
This commit is contained in:
Dave Abrahams
2002-03-08 14:56:39 +00:00
parent 97825fb2c7
commit e79a66851c
19 changed files with 381 additions and 178 deletions

View File

@@ -10,21 +10,23 @@
namespace boost { namespace python { namespace converter {
BOOST_PYTHON_DECL void* find(
BOOST_PYTHON_DECL rvalue_stage1_data find(
PyObject* source
, rvalue_from_python_registration const* chain
, rvalue_stage1_data& data)
, rvalue_from_python_registration const* chain)
{
rvalue_stage1_data data;
data.convertible = 0;
for (;chain != 0; chain = chain->next)
{
void* r = chain->convertible(source);
if (r != 0)
{
data.convertible = r;
data.construct = chain->construct;
return data.convertible = r;
break;
}
}
return data.convertible = 0;
return data;
}
BOOST_PYTHON_DECL void* find(