[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] c-callbacks
From: |
Robin Lee Powell |
Subject: |
Re: [Chicken-users] c-callbacks |
Date: |
Fri, 17 Aug 2007 14:34:07 -0700 |
User-agent: |
Mutt/1.5.13 (2006-08-11) |
On Fri, Aug 17, 2007 at 11:23:10PM +0200, Bastian Müller wrote:
>
> so, I put the define-external in graphics.scm, where I do now:
> (ode-space-collide space #f (location foobar))
>
> and throws again:
>
> Error: (location) bad argument type - locative can not refer to
> objects of this type: #<procedure (foobar data81 geom182 geom283)>
Is foobar defined with "define-external"? It really needs to be.
> I'm using chicken 2.6, btw.
There's lots of versions of 2.6. :)
Here's an actual code snippet of mine:
(define-external
(handle_waiting (c-pointer object)
(c-pointer clientData))
void
(logger "In handle_waiting.\n")
(status-update))
(define (status-setup)
(logger "In status-setup.\n")
; Run the update right away.
(status-update)
(setCDKObjectWaiting selection-widget (location handle_waiting) #f))
-Robin
--
http://www.digitalkingdom.org/~rlpowell/ *** http://www.lojban.org/
Reason #237 To Learn Lojban: "Homonyms: Their Grate!"
Proud Supporter of the Singularity Institute - http://singinst.org/