Skip to content

Commit

Permalink
Add JD_EVENT() macro (new style events).
Browse files Browse the repository at this point in the history
  • Loading branch information
Oberon00 committed Jul 26, 2013
1 parent 88eafd0 commit bb9d275
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/luaexport/LuaEventHelpers.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<typename Signature>
ssig::ConnectionBase* makeConnection(
Expand Down

0 comments on commit bb9d275

Please sign in to comment.