Removing alloca compat include.

This commit is contained in:
Бранимир Караџић
2024-12-21 19:24:50 -08:00
parent 6dfd865300
commit 896c610b72
11 changed files with 30 additions and 30 deletions

View File

@@ -497,7 +497,7 @@ namespace bgfx
int32_t len = bx::vsnprintf(out, max, _format, argList);
if (len > max)
{
out = (char*)alloca(len);
out = (char*)BX_STACK_ALLOC(len);
len = bx::vsnprintf(out, len, _format, argList);
}
@@ -592,7 +592,7 @@ namespace bgfx
int32_t len = bx::vsnprintf(out, max, _format, argList);
if (len > max)
{
out = (char*)alloca(len);
out = (char*)BX_STACK_ALLOC(len);
len = bx::vsnprintf(out, len, _format, argList);
}
@@ -683,7 +683,7 @@ namespace bgfx
{
const int32_t len = bx::strLen(_find);
char* replace = (char*)alloca(len+1);
char* replace = (char*)BX_STACK_ALLOC(len+1);
bx::strCopy(replace, len+1, _replace);
for (int32_t ii = bx::strLen(replace); ii < len; ++ii)
{
@@ -2747,7 +2747,7 @@ namespace bgfx
bin2c = baseName(outFilePath);
if (!bin2c.isEmpty() )
{
char* temp = (char*)alloca(bin2c.getLength()+1);
char* temp = (char*)BX_STACK_ALLOC(bin2c.getLength()+1);
for (uint32_t ii = 0, num = bin2c.getLength(); ii < num; ++ii)
{
char ch = bin2c.getPtr()[ii];