mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-04-11 20:03:11 +00:00
[util] Make FREE a little more macro-correct
That is, use ()s around uses of p
This commit is contained in:
parent
6e8c98433a
commit
a6b59d4a42
1 changed files with 4 additions and 4 deletions
|
@ -94,10 +94,10 @@ static struct DARRAY_TYPE(t *) n##_blocks = DARRAY_STATIC_INIT(8)
|
|||
|
||||
\hideinitializer
|
||||
*/
|
||||
#define FREE(n, p) \
|
||||
do { \
|
||||
p->next = n##_freelist; \
|
||||
n##_freelist = p; \
|
||||
#define FREE(n, p) \
|
||||
do { \
|
||||
(p)->next = n##_freelist; \
|
||||
n##_freelist = (p); \
|
||||
} while (0)
|
||||
#else
|
||||
#define ALLOC(s, t, n, v) \
|
||||
|
|
Loading…
Reference in a new issue