header file.
More...
Go to the source code of this file.
header file.
- Copyright
- ESO - European Southern Observatory
- Author
- crosenqu
◆ DECLARE_EVENT
#define DECLARE_EVENT |
( |
|
name, |
|
|
|
type |
|
) |
| |
Value:
static constexpr
char const* ID = #
name; \
using payload_t = type; \
}
Helper macro to define events with a payload.
- Note
- The runtime id will be the same as the Event type name.
◆ DECLARE_VOID_EVENT
#define DECLARE_VOID_EVENT |
( |
|
name | ) |
|
Value:
static constexpr
char const* ID = #
name; \
using payload_t = void; \
}
Helper macro to define events without a payload.
- Note
- The runtime id will be the same as the Event type name.