diff options
author | Haru <haru@dotalux.com> | 2020-03-08 22:32:22 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-08 22:32:22 +0100 |
commit | 21e3a41e912336914d0456257b6737dd2e9be0ef (patch) | |
tree | 02b2311c68e2301d5c2e1e73deb4b10777b0257a /tools | |
parent | 4891c9710015fdf98ebea2873802e993aa127654 (diff) | |
parent | 2f32871ca7790a4924dec19aeeabc1da6cb1fc32 (diff) | |
download | hercules-21e3a41e912336914d0456257b6737dd2e9be0ef.tar.gz hercules-21e3a41e912336914d0456257b6737dd2e9be0ef.tar.bz2 hercules-21e3a41e912336914d0456257b6737dd2e9be0ef.tar.xz hercules-21e3a41e912336914d0456257b6737dd2e9be0ef.zip |
Merge pull request #2546 from HerculesWS/unit_refactor
Refactor unit.c - Part I
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/HPMHookGen/HPMHookGen.pl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/HPMHookGen/HPMHookGen.pl b/tools/HPMHookGen/HPMHookGen.pl index 3cb81eeb2..cd4f10e2a 100755 --- a/tools/HPMHookGen/HPMHookGen.pl +++ b/tools/HPMHookGen/HPMHookGen.pl @@ -246,6 +246,8 @@ sub parse($$) { $rtinit = ' = THREADPRIO_NORMAL'; } elsif ($x =~ /^enum\s+market_buy_result$/) { # Known enum market_buy_result $rtinit = ' = MARKET_BUY_RESULT_ERROR'; + } elsif ($x =~ /^enum\s+unit_dir$/) { # Known enum unit_dir + $rtinit = ' = UNIT_DIR_UNDEFINED'; } elsif ($x eq 'DBComparator' or $x eq 'DBHasher' or $x eq 'DBReleaser') { # DB function pointers $rtinit = ' = NULL'; } elsif ($x =~ /^(?:struct|union)\s+.*$/) { # Structs and unions |