lua-users home
lua-l archive

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


Hi,

What does this snippet from lunar.h in http://lua-users.org/wiki/CppBindingWithLunar  mean


#define method(class, name) {#name, &class::name}

Lunar<Account>::RegType Account::methods[] = {
method(Account, deposit),
method(Account, withdraw),
method(Account, balance),
{0,0}
};



-Abhinav