reformat with_borrow

This commit is contained in:
2025-12-06 18:42:48 +01:00
parent 234eb510a9
commit 5468f8e3d2
+2 -3
View File
@@ -79,9 +79,8 @@ allocator_t allocator_from_borrow(borrow_allocator_t *this);
// the return a keyword in the statement following this macro will cause a // the return a keyword in the statement following this macro will cause a
// guaranteed memory leak. // guaranteed memory leak.
#define with_borrow(NAME)\ #define with_borrow(NAME)\
for (allocator_t NAME = borrow_allocator_create(); NAME.this != NULL; \ for (allocator_t NAME = borrow_allocator_create(); NAME.this != NULL; NAME.this = (allocator_reset(NAME), NULL)) \
NAME.this = (allocator_reset(NAME), NULL)) \ for (int UNIQUE = 0; UNIQUE < 1; UNIQUE++) \
for (int UNIQUE = 0; UNIQUE < 1; UNIQUE++)
// arena allocator ///////////////////////////////////////////////////////////// // arena allocator /////////////////////////////////////////////////////////////