summaryrefslogtreecommitdiff
path: root/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2018-04-08 22:14:05 +0200
committerGitHub <noreply@github.com>2018-04-08 22:14:05 +0200
commit21b56f6e44722e82405b78bee16a1a409743f58a (patch)
tree58df8a4d5c3648d71c6f2544a22777e951333858 /src/plugins/HPMHooking/HPMHooking_map.Hooks.inc
parentdd6655709ea9f61cec8229d98fe9e4a9bc31bf14 (diff)
parent2bc4b4f09d00a92b28805eeeb5b5624064983255 (diff)
downloadhercules-21b56f6e44722e82405b78bee16a1a409743f58a.tar.gz
hercules-21b56f6e44722e82405b78bee16a1a409743f58a.tar.bz2
hercules-21b56f6e44722e82405b78bee16a1a409743f58a.tar.xz
hercules-21b56f6e44722e82405b78bee16a1a409743f58a.zip
Merge pull request #2009 from MishimaHaruna/sprintf-hooking-fix
Fix HPMHooking compilation when sprintf() is a macro
Diffstat (limited to 'src/plugins/HPMHooking/HPMHooking_map.Hooks.inc')
-rw-r--r--src/plugins/HPMHooking/HPMHooking_map.Hooks.inc16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc b/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc
index 9a844cb92..02cf68bd2 100644
--- a/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc
+++ b/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc
@@ -67982,14 +67982,14 @@ int HP_script_run_func(struct script_state *st) {
}
return retVal___;
}
-bool HP_script_sprintf(struct script_state *st, int start, struct StringBuf *out) {
+bool HP_script_sprintf_helper(struct script_state *st, int start, struct StringBuf *out) {
int hIndex = 0;
bool retVal___ = false;
- if (HPMHooks.count.HP_script_sprintf_pre > 0) {
+ if (HPMHooks.count.HP_script_sprintf_helper_pre > 0) {
bool (*preHookFunc) (struct script_state **st, int *start, struct StringBuf **out);
*HPMforce_return = false;
- for (hIndex = 0; hIndex < HPMHooks.count.HP_script_sprintf_pre; hIndex++) {
- preHookFunc = HPMHooks.list.HP_script_sprintf_pre[hIndex].func;
+ for (hIndex = 0; hIndex < HPMHooks.count.HP_script_sprintf_helper_pre; hIndex++) {
+ preHookFunc = HPMHooks.list.HP_script_sprintf_helper_pre[hIndex].func;
retVal___ = preHookFunc(&st, &start, &out);
}
if (*HPMforce_return) {
@@ -67998,12 +67998,12 @@ bool HP_script_sprintf(struct script_state *st, int start, struct StringBuf *out
}
}
{
- retVal___ = HPMHooks.source.script.sprintf(st, start, out);
+ retVal___ = HPMHooks.source.script.sprintf_helper(st, start, out);
}
- if (HPMHooks.count.HP_script_sprintf_post > 0) {
+ if (HPMHooks.count.HP_script_sprintf_helper_post > 0) {
bool (*postHookFunc) (bool retVal___, struct script_state *st, int start, struct StringBuf *out);
- for (hIndex = 0; hIndex < HPMHooks.count.HP_script_sprintf_post; hIndex++) {
- postHookFunc = HPMHooks.list.HP_script_sprintf_post[hIndex].func;
+ for (hIndex = 0; hIndex < HPMHooks.count.HP_script_sprintf_helper_post; hIndex++) {
+ postHookFunc = HPMHooks.list.HP_script_sprintf_helper_post[hIndex].func;
retVal___ = postHookFunc(retVal___, st, start, out);
}
}