Fix of allocator::new.

This commit is contained in:
Christoffer Lerno
2024-02-16 21:55:30 +01:00
parent 1f052da0b9
commit 4ce62cf221

View File

@@ -108,7 +108,7 @@ macro void free_aligned(Allocator* allocator, void* ptr)
/**
* @require $vacount < 2 : "Too many arguments."
* @require $or($vacount == 1, $assignable($vaexpr(0), $Type)) : "The second argument must be an initializer for the type"
* @require $or($vacount == 0, $assignable($vaexpr(0), $Type)) : "The second argument must be an initializer for the type"
**/
macro new(Allocator* allocator, $Type, ...) @nodiscard
{