diff options
Diffstat (limited to 'src/emap/atcommand.h')
-rw-r--r-- | src/emap/atcommand.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/emap/atcommand.h b/src/emap/atcommand.h index 24e4a4c..5b8588b 100644 --- a/src/emap/atcommand.h +++ b/src/emap/atcommand.h @@ -9,6 +9,10 @@ const char* eatcommand_msgsd_pre(struct map_session_data **sdPtr, const char* eatcommand_msgfd_pre(int *fdPtr, int *msgPtr); +#define ACMD0(x) bool atcommand_ ## x (const int fd __attribute__ ((unused)), \ + struct map_session_data* sd __attribute__ ((unused)), \ + const char* command __attribute__ ((unused)), \ + const char* message __attribute__ ((unused)), struct AtCommandInfo *info __attribute__ ((unused))) #define ACMD1(x) bool atcommand_ ## x (const int fd __attribute__ ((unused)), \ struct map_session_data* sd __attribute__ ((unused)), \ const char* command __attribute__ ((unused)), \ @@ -23,6 +27,11 @@ const char* eatcommand_msgfd_pre(int *fdPtr, const char* command __attribute__ ((unused)), \ const char* message __attribute__ ((unused)), \ struct AtCommandInfo *info __attribute__ ((unused))) +#define ACMD4(x) bool atcommand_ ## x (const int fd __attribute__ ((unused)), \ + struct map_session_data* sd, \ + const char* command __attribute__ ((unused)), \ + const char* message, \ + struct AtCommandInfo *info __attribute__ ((unused))) ACMD2(setSkill); ACMD2(slide); @@ -30,6 +39,7 @@ ACMD3(hugo); ACMD3(linus); ACMD1(mapExit); ACMD1(serverExit); - +ACMD0(log); +ACMD4(tee); #endif // EVOL_MAP_ATCOMMAND |