[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Light User Data value changed
- From: Albert Chan <albertmcchan@...>
- Date: Fri, 19 Apr 2019 15:57:50 -0400
On Apr 19, 2019, at 3:35 PM, Milind Gupta <email@example.com> 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.