diff options
author | EladNLG <e1lad8955@gmail.com> | 2023-12-14 23:34:05 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-14 22:34:05 +0100 |
commit | 210dab2b0e5c686829bafdc857d2910f6b216b85 (patch) | |
tree | c3b049a122d8498f594a3c03648e7ea89e77bdee /NorthstarDLL | |
parent | 5a7ad2249b50470a84fc45eac95de2297ecc2da9 (diff) | |
download | NorthstarLauncher-1.21.2-rc1.tar.gz NorthstarLauncher-1.21.2-rc1.zip |
Fix SERVER | CLIENT context specifier error (#566)v1.21.2-rc1v1.21.1-rc1v1.21.1
Diffstat (limited to 'NorthstarDLL')
-rw-r--r-- | NorthstarDLL/squirrel/squirrelautobind.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/NorthstarDLL/squirrel/squirrelautobind.h b/NorthstarDLL/squirrel/squirrelautobind.h index 865479a1..19ecb808 100644 --- a/NorthstarDLL/squirrel/squirrelautobind.h +++ b/NorthstarDLL/squirrel/squirrelautobind.h @@ -21,16 +21,16 @@ class __squirrelautobind; __squirrelautobind CONCAT2(__squirrelautobind, __LINE__)( \ []() \ { \ - if constexpr (runOnContext & ScriptContext::UI) \ + if constexpr ((runOnContext)&ScriptContext::UI) \ g_pSquirrel<ScriptContext::UI>->AddFuncRegistration( \ returnType, __STR(funcName), argTypes, helpText, CONCAT2(Script_, funcName) < ScriptContext::UI >); \ - if constexpr (runOnContext & ScriptContext::CLIENT) \ + if constexpr ((runOnContext)&ScriptContext::CLIENT) \ g_pSquirrel<ScriptContext::CLIENT>->AddFuncRegistration( \ returnType, __STR(funcName), argTypes, helpText, CONCAT2(Script_, funcName) < ScriptContext::CLIENT >); \ }, \ []() \ { \ - if constexpr (runOnContext & ScriptContext::SERVER) \ + if constexpr ((runOnContext)&ScriptContext::SERVER) \ g_pSquirrel<ScriptContext::SERVER>->AddFuncRegistration( \ returnType, __STR(funcName), argTypes, helpText, CONCAT2(Script_, funcName) < ScriptContext::SERVER >); \ }); \ @@ -44,15 +44,15 @@ class __squirrelautobind; __squirrelautobind CONCAT2(__squirrelautobind, __LINE__)( \ []() \ { \ - if constexpr (runOnContext & ScriptContext::UI) \ + if constexpr ((runOnContext)&ScriptContext::UI) \ g_pSquirrel<ScriptContext::UI>->AddFuncOverride(__STR(funcName), CONCAT2(Script_, funcName) < ScriptContext::UI >); \ - if constexpr (runOnContext & ScriptContext::CLIENT) \ + if constexpr ((runOnContext)&ScriptContext::CLIENT) \ g_pSquirrel<ScriptContext::CLIENT>->AddFuncOverride( \ __STR(funcName), CONCAT2(Script_, funcName) < ScriptContext::CLIENT >); \ }, \ []() \ { \ - if constexpr (runOnContext & ScriptContext::SERVER) \ + if constexpr ((runOnContext)&ScriptContext::SERVER) \ g_pSquirrel<ScriptContext::SERVER>->AddFuncOverride( \ __STR(funcName), CONCAT2(Script_, funcName) < ScriptContext::SERVER >); \ }); \ |