From bb9d275256381f7caa2d56852f0f52eedf907a5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Neun=C3=BCller?= Date: Fri, 26 Jul 2013 11:40:42 +0200 Subject: [PATCH] Add JD_EVENT() macro (new style events). --- src/luaexport/LuaEventHelpers.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/luaexport/LuaEventHelpers.hpp b/src/luaexport/LuaEventHelpers.hpp index 7e30ad5..754f1b0 100644 --- a/src/luaexport/LuaEventHelpers.hpp +++ b/src/luaexport/LuaEventHelpers.hpp @@ -34,6 +34,8 @@ using boost::ref; using boost::cref; #define JD_EVENT_TABLE_END return nullptr; } + +#define JD_EVENT(name, cname) def("on" #cname, &LHCURCLASS::connect_##name) template ssig::ConnectionBase* makeConnection(