Re: luajit FFI cdata problem
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: luajit FFI cdata problem
- From: "Robert G. Jakabosky" <bobby@...>
- Date: 2011年3月30日 02:47:37 -0700
On Wednesday 30, Daurnimator wrote:
> Cdata returned from C structures is not the same each time it is
> fetched... This is creating problems with using cdata as keys in
> tables.
> (see attached)
>
> also, cdata does not even compare equal (that is, assert(a==a) fails)
>
> Anyone got some tricks to work with cdata?
for pointers I do:
local obj_key = tonumber(ffi.cast('uintptr_t', obj))
--
Robert G. Jakabosky