[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Lunar cpp binding
- From: "Abhinav Lele" <abhinav.lele@...>
- Date: Sat, 12 Jul 2008 09:38:59 +0530
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