From 904352498c7809b7675bbc5d1a27487fa5bd073a Mon Sep 17 00:00:00 2001 From: Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com> Date: Wed, 19 Jul 2023 16:18:04 +0200 Subject: [PATCH] Fix missing 'arguments' parameter to stub macro --- r5dev/game/shared/vscript_shared.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/r5dev/game/shared/vscript_shared.h b/r5dev/game/shared/vscript_shared.h index a15eea0b..0591f348 100644 --- a/r5dev/game/shared/vscript_shared.h +++ b/r5dev/game/shared/vscript_shared.h @@ -25,14 +25,14 @@ namespace VScriptCode void Script_RegisterCommonAbstractions(CSquirrelVM* s); -#define DEFINE_SCRIPTFUNC_STUBBED(s, functionName, returnType) \ - s->RegisterFunction(#functionName, MKSTRING(Script_##functionName), \ - "Stub function; not supported on this build.", #returnType, "", \ - &VScriptCode::Shared::StubUnsupported); \ +#define DEFINE_SCRIPTFUNC_STUBBED(s, functionName, returnType, parameters) \ + s->RegisterFunction(#functionName, MKSTRING(Script_##functionName), \ + "Stub function; not supported on this build.", #returnType, parameters, \ + &VScriptCode::Shared::StubUnsupported); \ -#define DEFINE_SHARED_SCRIPTFUNC_NAMED(s, functionName, helpString, \ - returnType, parameters) \ - s->RegisterFunction(#functionName, MKSTRING(Script_##functionName), \ +#define DEFINE_SHARED_SCRIPTFUNC_NAMED(s, functionName, helpString, \ + returnType, parameters) \ + s->RegisterFunction(#functionName, MKSTRING(Script_##functionName), \ helpString, returnType, parameters, VScriptCode::Shared::##functionName);\ ///////////////////////////////////////////////////////////////////////////////