WIP: uv-simple-select #1

Closed
Chris Blackbourn wants to merge 182 commits from uv-simple-select into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
Showing only changes of commit 5158ff0190 - Show all commits

View File

@ -281,6 +281,8 @@ inline T *MEM_new(const char *allocation_name, Args &&...args)
*/ */
template<typename T> inline void MEM_delete(const T *ptr) template<typename T> inline void MEM_delete(const T *ptr)
{ {
static_assert(!std::is_void_v<T>,
"MEM_delete on a void pointer not possible. Cast it to a non-void type?");
if (ptr == nullptr) { if (ptr == nullptr) {
/* Support #ptr being null, because C++ `delete` supports that as well. */ /* Support #ptr being null, because C++ `delete` supports that as well. */
return; return;