(svn r13456) -Codechange: use AllocaM() macro instead of alloca() at most places

This commit is contained in:
smatz
2008-06-10 21:59:22 +00:00
parent f4153bcbde
commit bd5067b5a0
6 changed files with 15 additions and 12 deletions

View File

@@ -90,4 +90,7 @@ template <typename T> FORCEINLINE T* ReallocT(T *t_ptr, size_t num_elements)
return t_ptr;
}
/** alloca() has to be called in the parent function, so define AllocaM() as a macro */
#define AllocaM(T, num_elements) ((T*)alloca((num_elements) * sizeof(T)))
#endif /* ALLOC_FUNC_HPP */