Remove text from asserts

This commit is contained in:
2025-05-05 19:29:44 +01:00
parent be30189d15
commit 175f627f93
9 changed files with 30 additions and 30 deletions

View File

@@ -4,23 +4,23 @@
#include <assert.h>
void *wapp_mem_allocator_alloc(const Allocator *allocator, u64 size) {
assert(allocator != NULL && (allocator->alloc) != NULL && "allocator argument shouldn't be NULL");
assert(allocator != NULL && (allocator->alloc) != NULL);
return allocator->alloc(size, allocator->obj);
}
void *wapp_mem_allocator_alloc_aligned(const Allocator *allocator, u64 size, u64 alignment) {
assert(allocator != NULL && (allocator->alloc_aligned) != NULL && "allocator argument shouldn't be NULL");
assert(allocator != NULL && (allocator->alloc_aligned) != NULL);
return allocator->alloc_aligned(size, alignment, allocator->obj);
}
void *wapp_mem_allocator_realloc(const Allocator *allocator, void *ptr, u64 old_size, u64 new_size) {
assert(allocator != NULL && (allocator->realloc) != NULL && "allocator argument shouldn't be NULL");
assert(allocator != NULL && (allocator->realloc) != NULL);
return allocator->realloc(ptr, old_size, new_size, allocator->obj);
}
void *wapp_mem_allocator_realloc_aligned(const Allocator *allocator, void *ptr, u64 old_size,
u64 new_size, u64 alignment) {
assert(allocator != NULL && (allocator->realloc_aligned) != NULL && "allocator argument shouldn't be NULL");
assert(allocator != NULL && (allocator->realloc_aligned) != NULL);
return allocator->realloc_aligned(ptr, old_size, new_size, alignment, allocator->obj);
}