From cd9879f237c290e6158892ae0c527d38ee9f83d8 Mon Sep 17 00:00:00 2001 From: Henri Verbeet Date: Tue, 13 Aug 2024 14:16:35 +0200 Subject: [PATCH] vkd3d-common: Replace assert() with VKD3D_ASSERT(). --- include/private/vkd3d_memory.h | 3 +-- libs/vkd3d-common/debug.c | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/include/private/vkd3d_memory.h b/include/private/vkd3d_memory.h index 682d35c0..e191dc11 100644 --- a/include/private/vkd3d_memory.h +++ b/include/private/vkd3d_memory.h @@ -19,7 +19,6 @@ #ifndef __VKD3D_MEMORY_H #define __VKD3D_MEMORY_H -#include #include #include #include @@ -44,7 +43,7 @@ static inline void *vkd3d_realloc(void *ptr, size_t size) static inline void *vkd3d_calloc(size_t count, size_t size) { void *ptr; - assert(count <= ~(size_t)0 / size); + VKD3D_ASSERT(count <= ~(size_t)0 / size); if (!(ptr = calloc(count, size))) ERR("Out of memory.\n"); return ptr; diff --git a/libs/vkd3d-common/debug.c b/libs/vkd3d-common/debug.c index 4bfc19bd..9a92f0ea 100644 --- a/libs/vkd3d-common/debug.c +++ b/libs/vkd3d-common/debug.c @@ -22,7 +22,6 @@ #include "vkd3d_common.h" -#include #include #include #include