diff options
author | Haru <haru@dotalux.com> | 2019-09-08 20:36:29 +0200 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2020-03-08 20:56:28 +0100 |
commit | 504d30428dc8d17c8521fd3b4b725963a49b045a (patch) | |
tree | 09d5b585bd1f4697e9490980e9fee040f5d3c876 /tools | |
parent | 5ab1da123f7bdad1aa448eb4552c44913855279c (diff) | |
download | hercules-504d30428dc8d17c8521fd3b4b725963a49b045a.tar.gz hercules-504d30428dc8d17c8521fd3b4b725963a49b045a.tar.bz2 hercules-504d30428dc8d17c8521fd3b4b725963a49b045a.tar.xz hercules-504d30428dc8d17c8521fd3b4b725963a49b045a.zip |
Add support for enum market_buy_result and enum unit_dir to the HPMHookGen
Signed-off-by: Haru <haru@dotalux.com>
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 |