Added macros DEFEVENT and DEFTRIGGER.