Displaying 1 result from an estimated 1 matches for "pycobject_asvoidptr".
2012 Mar 28
0
[LLVMdev] GSoC 2012 Proposal: Python bindings for LLVM
...\
                                                       \
   if (!PyArg_ParseTuple(args, "OsO", &obj1, &arg2, &obj3))   \
       return NULL;                                    \
                                                       \
   arg1 = ( intype1 ) PyCObject_AsVoidPtr(obj1);       \
   arg3 = ( intype3 ) PyCObject_AsVoidPtr(obj3);       \
                                                       \
   return ctor_ ## outtype ( func (arg1, arg2, arg3)); \
}*
So the above statement undergoes macro expansion to be:
*_wLLVMAddFunction (PyObject *self, PyObject *args)...