On 8/6/07, Ivan Raikov <[EMAIL PROTECTED]> wrote: > > ;; Parse & embed > #>! > > ___declare(type, "pyobject;\"PyObject\";py-object-to;py-object-from") > > PyObject *PyObject_CallObject (PyObject *, PyObject *); > > <# > >[...] > > It compiles, but when I actually try to evaluate this: > > (PyObject_CallObject func (list->vector (list))) > > I get an exception: > > Error: bad argument type - not a pointer: #() >
Try this instead: #>! ___declare(type, "pyobject;(c-pointer \"PyObject\");py-object-to;py-object-from") pyobject PyObject_CallObject (pyobject, pyobject); <# cheers, felix _______________________________________________ Chicken-users mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/chicken-users
