From 2626fcd7e69cb364499c13821937206159f3d3d6 Mon Sep 17 00:00:00 2001 From: Alex Cole Date: Sat, 4 Nov 2023 23:03:22 +0000 Subject: [PATCH] Fix compile errors. --- YSI_Core/y_core/y_amx_tests.inc | 6 +++--- YSI_Server/y_decorator/y_decorator_entry.inc | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/YSI_Core/y_core/y_amx_tests.inc b/YSI_Core/y_core/y_amx_tests.inc index 6784ae76..2cfb52f0 100644 --- a/YSI_Core/y_core/y_amx_tests.inc +++ b/YSI_Core/y_core/y_amx_tests.inc @@ -5,7 +5,7 @@ static stock @test(.group = "y_amx") y_amx_StringRead1B() { - YSI_gsAddr = ref(YSI_gsInput); + YSI_gsAddr = AMX_Ref(YSI_gsInput[0]); AMX_WriteUnpackedString(YSI_gsAddr, __COMPILER_UNPACK"Shorter string."); AMX_ReadString(YSI_gsAddr, YSI_gsOutput); ASSERT_SAME(YSI_gsOutput, "Shorter string."); @@ -13,7 +13,7 @@ static stock @test(.group = "y_amx") y_amx_StringRead2B() { - YSI_gsAddr = ref(YSI_gsInput); + YSI_gsAddr = AMX_Ref(YSI_gsInput[0]); AMX_WriteUnpackedString(YSI_gsAddr, __COMPILER_UNPACK"Shorter string."); AMX_ReadPackedString(YSI_gsAddr, YSI_gsOutput); ASSERT_SAME(YSI_gsOutput, "Shorter string."); @@ -21,7 +21,7 @@ static stock @test(.group = "y_amx") y_amx_StringRead3B() { - YSI_gsAddr = ref(YSI_gsInput); + YSI_gsAddr = AMX_Ref(YSI_gsInput[0]); AMX_WriteUnpackedString(YSI_gsAddr, __COMPILER_UNPACK"Shorter string."); AMX_ReadUnpackedString(YSI_gsAddr, YSI_gsOutput); ASSERT_SAME(YSI_gsOutput, "Shorter string."); diff --git a/YSI_Server/y_decorator/y_decorator_entry.inc b/YSI_Server/y_decorator/y_decorator_entry.inc index d2633e5e..3ef610fa 100644 --- a/YSI_Server/y_decorator/y_decorator_entry.inc +++ b/YSI_Server/y_decorator/y_decorator_entry.inc @@ -76,6 +76,7 @@ Optional plugins: Me - sscanf2, fixes2, Whirlpool. */ +#include "..\..\YSI_Core\y_utils" #include "..\y_thirdpartyinclude\y_codeparse" #define @decorator__(%2)(%3)%0(%1) FUNC_PARSER(DECORATOR__,ARR_CST:STR_CST:NUM_CST:)(%0(%1))(%0)(%1)()()(%2)(%3)