… | |
… | |
64 | #define ARG_MAP(o) DT_MAP , (void *)static_cast<maptile *> (o) |
64 | #define ARG_MAP(o) DT_MAP , (void *)static_cast<maptile *> (o) |
65 | #define ARG_PLAYER(o) DT_PLAYER, (void *)static_cast<player *> (o) |
65 | #define ARG_PLAYER(o) DT_PLAYER, (void *)static_cast<player *> (o) |
66 | #define ARG_ARCH(o) DT_ARCH , (void *)static_cast<archetype *> (o) |
66 | #define ARG_ARCH(o) DT_ARCH , (void *)static_cast<archetype *> (o) |
67 | #define ARG_PARTY(o) DT_PARTY , (void *)static_cast<party *> (o) |
67 | #define ARG_PARTY(o) DT_PARTY , (void *)static_cast<party *> (o) |
68 | #define ARG_REGION(o) DT_REGION, (void *)static_cast<region *> (o) |
68 | #define ARG_REGION(o) DT_REGION, (void *)static_cast<region *> (o) |
69 | #define ARG_SOCKET(o) DT_SOCKET, (void *)static_cast<client_socket *> (o) |
69 | #define ARG_SOCKET(o) DT_SOCKET, (void *)static_cast<client *> (o) |
70 | |
70 | |
71 | // the ", ## __VA_ARGS" is, unfortunately, a gnu-cpp extension |
71 | // the ", ## __VA_ARGS" is, unfortunately, a gnu-cpp extension |
72 | |
72 | |
73 | // all these return true when the normal event processing should be skipped (if any) |
73 | // all these return true when the normal event processing should be skipped (if any) |
74 | #define INVOKE_(event, ...) cfperl_invoke (event, ## __VA_ARGS__, DT_END) |
74 | #define INVOKE_(event, ...) cfperl_invoke (event, ## __VA_ARGS__, DT_END) |