From a724476174cd691704a51f60e540513bae743432 Mon Sep 17 00:00:00 2001 From: shennetsind Date: Fri, 22 Nov 2013 10:47:45 -0200 Subject: Minor HPMi Sub Modifications - HPMi->addCommand is now addAtcommand, dropped usage of ACMD_A() - HPMi->addScript is now addScriptCommand, dropped usage of BUILDIN_A() - HPMi->addCPCommand is now addCPCommand, dropped necessity of CPCMD_A() - HPMi->addPacket is now addPacket, 5th param (HPMi->pid) is now automatically filled by the macro, therefore param count drops to 4 (packetID,packetLength,packetFunction,packetIncomingPoint). There is no longer necessity to check for the availability of the commands, the macros will do it on their own and drop a warning about it upon failure. These changes won't affect pre-compiled plugins. Signed-off-by: shennetsind --- src/map/atcommand.h | 1 - src/map/script.h | 1 - 2 files changed, 2 deletions(-) (limited to 'src/map') diff --git a/src/map/atcommand.h b/src/map/atcommand.h index 6b5a52fcb..d01f00d8e 100644 --- a/src/map/atcommand.h +++ b/src/map/atcommand.h @@ -122,6 +122,5 @@ void atcommand_defaults(void); /* stay here */ #define ACMD(x) static bool atcommand_ ## x (const int fd, struct map_session_data* sd, const char* command, const char* message, struct AtCommandInfo *info) -#define ACMD_A(x) atcommand_ ## x #endif /* _ATCOMMAND_H_ */ diff --git a/src/map/script.h b/src/map/script.h index 32426e988..e0e5f9ea9 100644 --- a/src/map/script.h +++ b/src/map/script.h @@ -145,7 +145,6 @@ struct eri; #define is_string_variable(name) ( (name)[strlen(name) - 1] == '$' ) #define BUILDIN(x) bool buildin_ ## x (struct script_state* st) -#define BUILDIN_A(x) buildin_ ## x #define script_fetch(st, n, t) do { \ if( script_hasdata((st),(n)) ) \ -- cgit v1.2.3-70-g09d2