lua-users home
lua-l archive

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


Hi,

I have implemented your solution, but had to change two lines because of a compiler error (VS2008). What do you mean?

was ...

#define LCB_ADD_SET(fieldname) { #fieldname , set_##fieldname }
#define LCB_ADD_GET(fieldname) { #fieldname , get_##fieldname }

changed to ...

#define LCB_ADD_SET(fieldname) { #fieldname , &set_##fieldname }
#define LCB_ADD_GET(fieldname) { #fieldname , &get_##fieldname }


Just another question. What can I change to use the same solution as well for methods with more than one parameter, e.g. instead of btn:SetPosition( 1, 1 ) I want to use btn.Position = 1, 1?

Best Regards
Micha