[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Luajit cdata with metatables....
- From: CrazyButcher <crazybutcher@...>
- Date: Tue, 5 Apr 2011 10:26:07 +0200
what has been suggested before is make a little classic lua C
interface function that exposes sized userdata with a metatable.
see mailinglist [1]
you then can ffi.cast the userdata to the actual type being stored in
it. and work from that
http://osdir.com/ml/general/2011-02/msg22639.html
2011/4/5 Daurnimator <quae@daurnimator.com>:
> On 3 April 2011 16:02, Daurnimator <quae@daurnimator.com> wrote:
>> Anyone care to help?
>>
>> Daurn
>>
>
> Ended up with this: https://gist.github.com/902845
> You now have pointer objects, which are small wrappers around cdata.
>
> @Mike Pall: any comments on the efficiency of this?
>
> Daurn.
>
>