Cleanup: MEM: Remove outdated comment
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user