chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] Question about easyffi


From: felix winkelmann
Subject: Re: [Chicken-users] Question about easyffi
Date: Mon, 6 Aug 2007 06:46:08 +0200

On 8/6/07, Ivan Raikov <address@hidden> 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]