Hallo,
On 06/01/16 12:47, Adam wrote:
One way would be to return a special C "int-or-boolean" structure and then access it via special accessors. E.g. (let* ((r (your-c-call))) (if (struct=false? r) #f (struct-int r))) ?
Well, I am sure it is possible to pack an uint32 inside a scheme object, using the API, and return that. I just don't know the right incantation. :)
Cheers, -alex http://unendli.ch/