Commit 088d57373aa4d523a4431b2ba13ec0f7c2245e00

Authored by Georg Hopp
1 parent 0d2cd204

reintroduce macros for handler initialization.

Showing 1 changed file with 6 additions and 0 deletions
@@ -68,6 +68,12 @@ void TR__eventHandlerClassCleanup(TR_class_ptr); @@ -68,6 +68,12 @@ void TR__eventHandlerClassCleanup(TR_class_ptr);
68 sizeof(TR_EventMethod_fptr))); \ 68 sizeof(TR_EventMethod_fptr))); \
69 } while(0) 69 } while(0)
70 70
  71 +#define TR_INIT_HANDLER(cname) \
  72 + TR_INSTANCE(TR_Tree, cname##EventMethodsTree, NULL); \
  73 + TR_INSTANCE(TR_Hash, cname##EventMethods, &(_##cname##EventMethodsTree.data), 0)
  74 +
  75 +#define TR_HANDLER_CVARS(cname) &(_##cname##EventMethods.data)
  76 +
71 #endif // __TR_EVENT_HANDLER_H__ 77 #endif // __TR_EVENT_HANDLER_H__
72 78
73 // vim: set ts=4 sw=4: 79 // vim: set ts=4 sw=4:
Please register or login to post a comment