Skip to content

Commit

Permalink
Fix SERVER | CLIENT context specifier error (#566)
Browse files Browse the repository at this point in the history
  • Loading branch information
EladNLG authored Dec 14, 2023
1 parent 5a7ad22 commit 210dab2
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions NorthstarDLL/squirrel/squirrelautobind.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 >); \
}); \
Expand All @@ -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 >); \
}); \
Expand Down

0 comments on commit 210dab2

Please sign in to comment.