Call UUID lambdas
All checks were successful
Release / release (push) Successful in 3s

This commit is contained in:
2026-05-10 02:21:38 +01:00
parent c7c4f88866
commit 9c727950d8
2 changed files with 3 additions and 3 deletions

View File

@@ -1 +1 @@
1.0.2 1.0.3

View File

@@ -26,7 +26,7 @@ struct WUUID {
#define wapp_uuid_gen_uuid4() ([&](){ \ #define wapp_uuid_gen_uuid4() ([&](){ \
wapp_persist WUUID uuid = wapp_uuid_create(); \ wapp_persist WUUID uuid = wapp_uuid_create(); \
return *(wapp_uuid_init_uuid4(&uuid)) \ return *(wapp_uuid_init_uuid4(&uuid)) \
}) }())
#else #else
#define wapp_uuid_gen_uuid4() *(wapp_uuid_init_uuid4(&wapp_uuid_create())) #define wapp_uuid_gen_uuid4() *(wapp_uuid_init_uuid4(&wapp_uuid_create()))
#endif #endif
@@ -34,7 +34,7 @@ struct WUUID {
/* Low level UUID API */ /* Low level UUID API */
#ifdef WAPP_PLATFORM_CPP #ifdef WAPP_PLATFORM_CPP
#define wapp_uuid_create() ([&](){ return WUUID{wapp_str8_buf(UUID_BUF_LENGTH)}; }) #define wapp_uuid_create() ([&](){ return WUUID{wapp_str8_buf(UUID_BUF_LENGTH)}; }())
#else #else
#define wapp_uuid_create() ((WUUID){.uuid = wapp_str8_buf(UUID_BUF_LENGTH)}) #define wapp_uuid_create() ((WUUID){.uuid = wapp_str8_buf(UUID_BUF_LENGTH)})
#endif #endif