Re: light userdata (Was: Fastest way to transfer data from C to Lua ?)
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: light userdata (Was: Fastest way to transfer data from C to Lua ?)
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: 2013年6月20日 09:58:23 -0300
> I think nobody should give lightuserdata to a script just like a variable.
I'm not sure what you mean exactly here, but giving userdata, light or
not, to a Lua script is totally harmless because userdata has no instrinsic
operations, except for equality test. The real issue is sending userdata
to the host: C code must ensure the validity of the corresponding pointer.