|
From: | Dan Leslie |
Subject: | Re: [Chicken-users] Chicken C interface |
Date: | Wed, 05 Jun 2013 08:47:45 -0700 |
User-agent: | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130509 Thunderbird/17.0.6 |
I do this a fair bit in the Allegro
egg.
Here's an example: https://github.com/dleslie/allegro-egg/blob/985ca2ceef0f5b4028af3f97729f13cba2976fe5/color.scm Basically, use C_alloc to allocate the memory required to host both the List structure and the data it is to contain, then use the C_list macro to patch it all together. -Dan On 6/5/2013 8:10 AM, pluijzer . wrote:
|
[Prev in Thread] | Current Thread | [Next in Thread] |