Cleanup: MEM: Remove outdated comment

This commit is contained in:
Clément Foucault
2024-04-12 18:01:26 +02:00
parent 60a3d85b88
commit d1d90ecbec

View File

@@ -312,8 +312,6 @@ template<typename T> inline T *MEM_cnew(const char *allocation_name)
{
static_assert(std::is_trivial_v<T>, "For non-trivial types, MEM_new should be used.");
if (alignof(T) <= MEM_MIN_CPP_ALIGNMENT) {
/* TODO: Could possibly cover more cases, like alignment of 8 or 16. Need to be careful as the
* alignment of MEM_callocN is not really guaranteed. */
return static_cast<T *>(MEM_callocN(sizeof(T), allocation_name));
}
void *ptr = MEM_mallocN_aligned(sizeof(T), alignof(T), allocation_name);