summaryrefslogtreecommitdiff
path: root/tools/HPMHookGen/HPMHookGen.pl
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2016-04-16 23:51:57 +0200
committerHaru <haru@dotalux.com>2016-07-12 20:58:39 +0200
commit7214eb1ef48352911a84ada089bbebdb0d5678f2 (patch)
tree870cd47a12c24ce671268ac1ea5e32f040244c2d /tools/HPMHookGen/HPMHookGen.pl
parent527cf1b812a117285957be820ba1dc31533e9073 (diff)
downloadhercules-7214eb1ef48352911a84ada089bbebdb0d5678f2.tar.gz
hercules-7214eb1ef48352911a84ada089bbebdb0d5678f2.tar.bz2
hercules-7214eb1ef48352911a84ada089bbebdb0d5678f2.tar.xz
hercules-7214eb1ef48352911a84ada089bbebdb0d5678f2.zip
Changed the HPMHookGen script to correctly handle macros associated with an interface
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'tools/HPMHookGen/HPMHookGen.pl')
-rwxr-xr-xtools/HPMHookGen/HPMHookGen.pl1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/HPMHookGen/HPMHookGen.pl b/tools/HPMHookGen/HPMHookGen.pl
index 1d6a3e122..75dd51736 100755
--- a/tools/HPMHookGen/HPMHookGen.pl
+++ b/tools/HPMHookGen/HPMHookGen.pl
@@ -359,6 +359,7 @@ foreach my $file (@files) { # Loop through the xml files
my $bstart = $b->{location}->[0]->{bodystart} || $b->{location}->[0]->{line};
$astart <=> $bstart
} @$memberdef) { # Loop through the members
+ next unless $f->{kind} eq 'variable'; # Skip macros
my $t = $f->{argsstring}->[0];
my $def = $f->{definition}->[0];
if ($f->{type}->[0] =~ /^\s*LoginParseFunc\s*\*\s*$/) {