aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDedicatedTest/hooks.h
diff options
context:
space:
mode:
authorBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2022-05-09 20:23:16 +0100
committerBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2022-05-09 20:23:16 +0100
commit5ce8343bcced9e92ab2b3c1b80382cffa0281629 (patch)
tree95ce2dbe8dc976cab987d76f8e964a2efc6c23fd /NorthstarDedicatedTest/hooks.h
parent180470cf75f40bed9c24b22d0afd68871d40c9f3 (diff)
downloadNorthstarLauncher-5ce8343bcced9e92ab2b3c1b80382cffa0281629.tar.gz
NorthstarLauncher-5ce8343bcced9e92ab2b3c1b80382cffa0281629.zip
use lambdas for dll load callbacks so intellisense shits itself less
Diffstat (limited to 'NorthstarDedicatedTest/hooks.h')
-rw-r--r--NorthstarDedicatedTest/hooks.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/NorthstarDedicatedTest/hooks.h b/NorthstarDedicatedTest/hooks.h
index 7f4eefbc..bc0a6311 100644
--- a/NorthstarDedicatedTest/hooks.h
+++ b/NorthstarDedicatedTest/hooks.h
@@ -37,8 +37,7 @@ class __dllLoadCallback
#define __STR(s) #s
#define __ON_DLL_LOAD(dllName, func, side, counter, uniquestr, reliesOn) \
-void CONCAT(__callbackFunc, uniquestr, counter) func \
-__dllLoadCallback CONCAT(__dllLoadCallbackInstance, uniquestr, counter)(side, dllName, CONCAT(__callbackFunc, uniquestr, counter), __STR(uniquestr), reliesOn);
+__dllLoadCallback CONCAT(__dllLoadCallbackInstance, uniquestr, counter)(side, dllName, func, __STR(uniquestr), reliesOn);
#define ON_DLL_LOAD(dllName, uniquestr, func) __ON_DLL_LOAD(dllName, func, eDllLoadCallbackSide::UNSIDED, __LINE__, uniquestr, "")
#define ON_DLL_LOAD_RELIESON(dllName, uniquestr, reliesOn, func) __ON_DLL_LOAD(dllName, func, eDllLoadCallbackSide::UNSIDED, __LINE__, uniquestr, __STR(reliesOn))