diff options
author | shennetsind <ind@henn.et> | 2013-11-22 10:47:45 -0200 |
---|---|---|
committer | shennetsind <ind@henn.et> | 2013-11-22 10:47:45 -0200 |
commit | a724476174cd691704a51f60e540513bae743432 (patch) | |
tree | 7d1935a7640e9e2c2594df931e450dfc55576f3f /src/map/script.h | |
parent | 0ba8a5b1792225f736ef96603e2ceb40a90e38e4 (diff) | |
download | hercules-a724476174cd691704a51f60e540513bae743432.tar.gz hercules-a724476174cd691704a51f60e540513bae743432.tar.bz2 hercules-a724476174cd691704a51f60e540513bae743432.tar.xz hercules-a724476174cd691704a51f60e540513bae743432.zip |
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 <ind@henn.et>
Diffstat (limited to 'src/map/script.h')
-rw-r--r-- | src/map/script.h | 1 |
1 files changed, 0 insertions, 1 deletions
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)) ) \ |