mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-17 20:52:36 +01:00
Removing alloca compat include.
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user