Fix bug with C++ array_pop

This commit is contained in:
2025-12-14 03:06:50 +00:00
parent b11ee05df4
commit 056dbbf3d7

View File

@@ -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; \
} \