Re: Macro expansion of lua_newuserdata()?
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Macro expansion of lua_newuserdata()?
- From: Roberto Ierusalimschy <roberto@...>
- Date: 2020年7月20日 10:50:41 -0300
> Ah, it ought to have been obvious, thanks!
It is explained in the manual:
Full userdata now has an arbitrary number of associated user values.
[...]
For compatibility, the old names still work as macros assuming one
single user value. Note, however, that userdata with zero user values
are more efficient memory-wise.
-- Roberto