macro_rules! event {
    ($name:ident, $arg:ty, $ret:ty) => { ... };
}
Expand description

declares an EventDef in a global const variable corrisponding to an event with the specified types.

each event declaration will have a unique type, so you must only use ONE declaration to refer to a event, eg

event!(EVENT_A, (), ());
event!(EVENT_B, (), ());

will NOT have the same type, despite having the same signature

Args

( name: the name of the const variable produced arg: the type of the arguments for the event ret: the return type of the event )