Am 10.05.2012 19:07, schrieb Tove:
auto my_extended_alloca(size_t size, void* buf=alloca(size))
{
    return buf;
}

and whats the difference to?

auto my_extended_alloca(size_t size, void* buf)
{
  return alloca(size);
}

except that you hide the alloca in the interface
which can be easily overwritten with malloc or something?

auto x = my_extended_alloca( 10, malloc(100) ); ???


Reply via email to