Cleanup: Unused alloca definitions and includes

This commit is contained in:
Charles Pigott
2023-04-11 08:40:50 +01:00
committed by PeterN
parent b282664242
commit 6fc28d649e
13 changed files with 6 additions and 21 deletions

View File

@@ -128,9 +128,4 @@ static inline 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) \
(CheckAllocationConstraints<T>(num_elements), \
(T*)alloca((num_elements) * sizeof(T)))
#endif /* ALLOC_FUNC_HPP */