Fix array pop for C++ pointer types

This commit is contained in:
abdelrahman committed 2025-11-08 20:45:41 +00:00
1 parent 0a00721c10
commit 1bdc1ad955
3 files changed
+28 -11

No files matched your search

+1 -1
View File
@@ -51,7 +51,7 @@ BEGIN_C_LINKAGE
}())
#define wapp_void_ptr_array_pop(ARRAY_PTR) (ARRAY_PTR != NULL && (ARRAY_PTR)->count > 0 ? \
*_void_ptr_array_pop(ARRAY_PTR) : \
void *{} \
(void *)(0) \
)
#define wapp_str8_array(...) ([&]() { \
wapp_persist Str8 buf[wapp_misc_utils_u64_round_up_pow2(wapp_misc_utils_va_args_count(Str8, __VA_ARGS__) * 2)] = {__VA_ARGS__}; \