lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


>Let's say I have a structure defined in C:

>Is there a way
>to pass in a pointer as a userdata variable and directly access the data in
>memory?  

No, not directly.
But you can use "gettable" tag methods to make this access transparent.
tolua does this.  Even if you don't use tolua, you can lok at the code it
generates.
--lhf