Linking values to lua with set/get
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Linking values to lua with set/get
- From: Timm Felden <timm.felden@...>
- Date: 2007年3月01日 12:11:05 +0100
Is there a way of writing a function "lua_link( name, set, get );", that
would do this:
lua: name = <any value(s)>
-> invokes the parameter passed as set, this is like the normal C-functions
lua: x = name
-> invokes set, which is also a normal C-function, but by default gets
no parameters and returns only one.
I ask, because I have to take care of values between lua and C and atm
I'm using functions, what is pretty ugly:P
Timm Felden