[Top][All Lists]

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

[Chicken-users] SWIG pointers and Chicken

From: Joel Reymont
Subject: [Chicken-users] SWIG pointers and Chicken
Date: Sun, 12 Dec 2004 18:17:36 +0000


Has anyone used SWIG with Chicken?

This is the structure that I'm trying to wrap:

struct Packet
        unsigned char* data;

It wraps correctly and I'm able to retrieve the data member but... The
type is <SWIG-pointer> which is neither pointer nor tagged-pointer. I
can't use the functions from the lolevel unit to access the individual
bytes pointed to by the data member.

How do I convert from SWIG-pointer to pointer or tagged-pointer in Chicken?

    Thanks, Joel

OpenPoker: The Linux of poker software
Tenerife: Canary Islands: Spain

reply via email to

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