[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Light User Data value changed
- From: Tim Hill <drtimhill@...>
- Date: Fri, 19 Apr 2019 21:50:24 -0500
> On Apr 19, 2019, at 2:57 PM, Albert Chan <email@example.com> wrote:
>> On Apr 19, 2019, at 3:35 PM, Milind Gupta <firstname.lastname@example.org> wrote:
>> I am trying to use Light User Data to point to a 64 bit integer in my C module. I pass the address of the 64 bit integer as light user data back to lua. When Lua calls another function passing it the light user data then the value at the pointer is different. I have attached the code for the C module. And the run output from Lua:
> Your 64-bit integer, n, is a local variable.
> Once out of scope, is undefined.