… | |
… | |
51 | #define ARG_AV(o) DT_AV , static_cast<AV *> (o) |
51 | #define ARG_AV(o) DT_AV , static_cast<AV *> (o) |
52 | #define ARG_INT(v) DT_INT , static_cast<int> (v) |
52 | #define ARG_INT(v) DT_INT , static_cast<int> (v) |
53 | #define ARG_INT64(v) DT_INT64 , static_cast<sint64> (v) |
53 | #define ARG_INT64(v) DT_INT64 , static_cast<sint64> (v) |
54 | #define ARG_DOUBLE(v) DT_DOUBLE, static_cast<double> (v) |
54 | #define ARG_DOUBLE(v) DT_DOUBLE, static_cast<double> (v) |
55 | #define ARG_STRING(v) DT_STRING, static_cast<const char *> (v) |
55 | #define ARG_STRING(v) DT_STRING, static_cast<const char *> (v) |
56 | #define ARG_DATA(s,l) DT_DATA , static_cast<const void *> (s), (l) |
56 | #define ARG_DATA(s,l) DT_DATA , static_cast<const void *> (s), int (l) |
57 | #define ARG_OBJECT(o) DT_OBJECT, (void *)static_cast<object *> (o) |
57 | #define ARG_OBJECT(o) DT_OBJECT, (void *)static_cast<object *> (o) |
58 | #define ARG_MAP(o) DT_MAP , (void *)static_cast<maptile *> (o) |
58 | #define ARG_MAP(o) DT_MAP , (void *)static_cast<maptile *> (o) |
59 | #define ARG_PLAYER(o) DT_PLAYER, (void *)static_cast<player *> (o) |
59 | #define ARG_PLAYER(o) DT_PLAYER, (void *)static_cast<player *> (o) |
60 | #define ARG_ARCH(o) DT_ARCH , (void *)static_cast<archetype *> (o) |
60 | #define ARG_ARCH(o) DT_ARCH , (void *)static_cast<archetype *> (o) |
61 | #define ARG_PARTY(o) DT_PARTY , (void *)static_cast<party *> (o) |
61 | #define ARG_PARTY(o) DT_PARTY , (void *)static_cast<party *> (o) |
62 | #define ARG_REGION(o) DT_REGION, (void *)static_cast<region *> (o) |
62 | #define ARG_REGION(o) DT_REGION, (void *)static_cast<region *> (o) |
63 | |
63 | |
64 | // the ", ## __VA_ARGS" is, unfortunately, a gnu-cpp extension |
64 | // the ", ## __VA_ARGS" is, unfortunately, a gnu-cpp extension |