#156682 - simonjhall - Mon May 12, 2008 7:12 pm
I discovered the amazingness that is alloca() recently - it's great! I can't believe I'd never used (nor heard of) this function before.
For those who don't know, it's used for creating variable-sized arrays on the stack, not the heap. When the function returns, the compiler automatically frees the memory. Useful on targets where you don't have a new or malloc.
_________________
Big thanks to everyone who donated for Quake2
For those who don't know, it's used for creating variable-sized arrays on the stack, not the heap. When the function returns, the compiler automatically frees the memory. Useful on targets where you don't have a new or malloc.
_________________
Big thanks to everyone who donated for Quake2