[capi-sig] varargs in the C API.

Guillaume Yziquel guillaume.yziquel at citycable.ch
Sat Feb 20 03:28:51 CET 2010


Guillaume Yziquel a écrit :
> Hello.
> 
> So just wondering: has anyone succeeded in wrapping functions like 
> PyTuple_Pack using stuff like avcall, libffi, or cinvoke?
> 
> Here's the code of my wrapper:

Stupid me:

>>   av_start_ptr(argList, PyTuple_Pack, PyObject*, retVal);

was wrong.

> av_start_ptr(argList, &PyTuple_Pack, PyObject*, &retVal)

was the correct invocation.

-- 
      Guillaume Yziquel
http://yziquel.homelinux.org/


More information about the capi-sig mailing list