From b97c40a7095474115cdeac7a93183353b203886b Mon Sep 17 00:00:00 2001 From: MikalaiR Date: Sat, 16 Jan 2016 08:43:00 +0000 Subject: MirLua: lambda-based metatables wrapper git-svn-id: http://svn.miranda-ng.org/main/trunk@16096 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/MirLua/src/m_msg_buttonsbar.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'plugins/MirLua/src/m_msg_buttonsbar.cpp') diff --git a/plugins/MirLua/src/m_msg_buttonsbar.cpp b/plugins/MirLua/src/m_msg_buttonsbar.cpp index 39fff188a1..9ba12aef48 100644 --- a/plugins/MirLua/src/m_msg_buttonsbar.cpp +++ b/plugins/MirLua/src/m_msg_buttonsbar.cpp @@ -133,10 +133,10 @@ LUAMOD_API int luaopen_m_msg_buttonsbar(lua_State *L) luaL_newlib(L, msgbuttinsbarApi); MT(L, "CustomButtonClickData") - .Field(&CustomButtonClickData::pszModule, "Module", LUA_TSTRINGA) - .Field(&CustomButtonClickData::dwButtonId, "ButtonID", LUA_TINTEGER) - .Field(&CustomButtonClickData::hContact, "hContact", LUA_TINTEGER) - .Field(&CustomButtonClickData::flags, "Flags", LUA_TINTEGER); + .Field(LFUNC(CustomButtonClickData, [](CustomButtonClickData *p) { return p->pszModule; }), "Module", LUA_TSTRINGA) + .Field(LFUNC(CustomButtonClickData, [](CustomButtonClickData *p) { return (void*)p->dwButtonId; }), "ButtonID", LUA_TINTEGER) + .Field(LFUNC(CustomButtonClickData, [](CustomButtonClickData *p) { return (void*)p->hContact; }), "hContact", LUA_TINTEGER) + .Field(LFUNC(CustomButtonClickData, [](CustomButtonClickData *p) { return (void*)p->flags; }), "Flags", LUA_TINTEGER); lua_pop(L, 1); return 1; -- cgit v1.2.3