forked from bartvdbraak/blender
fix for error found while looking into #30221
macro needed parentheses.
This commit is contained in:
parent
020ec22114
commit
ad22305137
@ -177,11 +177,11 @@
|
||||
* same purpose as BLI_array_staticdeclare()
|
||||
* but use when the max size is known ahead of time */
|
||||
#define BLI_array_fixedstack_declare(arr, maxstatic, realsize, allocstr) \
|
||||
char _##arr##_static[maxstatic*sizeof(*arr)]; \
|
||||
char _##arr##_static[maxstatic*sizeof(*(arr))]; \
|
||||
const int _##arr##_is_static= ((void *)_##arr##_static) != ( \
|
||||
arr= (realsize <= maxstatic) ? \
|
||||
arr= ((realsize) <= maxstatic) ? \
|
||||
(void *)_##arr##_static : \
|
||||
MEM_mallocN(sizeof(*arr)*realsize, allocstr) \
|
||||
MEM_mallocN(sizeof(*(arr)) * (realsize), allocstr) \
|
||||
) \
|
||||
|
||||
#define BLI_array_fixedstack_free(arr) \
|
||||
|
Loading…
Reference in New Issue
Block a user