[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Returns lua_newuserdata a constant address?
- From: Michael Roth <mroth@...>
- Date: Mon, 02 Aug 2004 11:10:19 +0200
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello,
Is the pointer returned by lua_newuserdata() a constant one or exists a
possibility that the memory block will be moved by lua and the address
of the returned memory block change during garbage collection?
I plan to use a C-pointer stored outside the lua context pointing to a
memory block returned by lua_newuserdata().
I know already, if there aren't any references from lua to the userdata
object the memory block will be collected and my pointer become invalid.
cu
Michael
-----BEGIN PGP SIGNATURE-----
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFBDgT6SIrOxc3jOmoRAjyOAJwMzhrNUs+23bM8nzlxjoMTTDfrowCeJedH
HxtczGs50pAYq83QjI76Ry4=
=buzK
-----END PGP SIGNATURE-----