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(