Fix bug with C++ array_pop
This commit is contained in:
@@ -51,7 +51,7 @@ BEGIN_C_LINKAGE
|
||||
return (TYPE *)(header + 1); \
|
||||
}())
|
||||
#define wapp_array_pop(TYPE, ARRAY_PTR) ([&]() { \
|
||||
if (ARRAY_PTR != NULL || _array_count((u8 *)ARRAY_PTR) == 0) { \
|
||||
if (ARRAY_PTR == NULL || _array_count((u8 *)ARRAY_PTR) == 0) { \
|
||||
TYPE result{}; \
|
||||
return result; \
|
||||
} \
|
||||
|
||||
Reference in New Issue
Block a user