Removing alloca compat include.

This commit is contained in:
Бранимир Караџић
2024-12-21 19:24:22 -08:00
parent 7dc7dfc380
commit 61cc316669
15 changed files with 16 additions and 655 deletions

View File

@@ -61,7 +61,7 @@ static bool test(const char* _expected, const char* _format, va_list _argList)
{
const int32_t expectedLen = bx::strLen(_expected);
int32_t max = expectedLen + 1024;
char* bxTemp = (char*)alloca(max);
char* bxTemp = (char*)BX_STACK_ALLOC(max);
va_list argList;
va_copy(argList, _argList);
@@ -83,7 +83,7 @@ static bool test(const char* _expected, const char* _format, va_list _argList)
"Use `testNotStdCompliant` string testing method."
);
crtTemp = (char*)alloca(max);
crtTemp = (char*)BX_STACK_ALLOC(max);
va_copy(argList, _argList);
crtLen = ::vsnprintf(crtTemp, max, _format, argList);