Fix UUID for C++
All checks were successful
Release / release (push) Successful in 5s

This commit is contained in:
2026-05-10 02:13:41 +01:00
parent 270dbfe5ca
commit 6346765e32
2 changed files with 5 additions and 1 deletions

View File

@@ -1 +1 @@
1.0.0 1.0.1

View File

@@ -26,7 +26,11 @@ struct WUUID {
/* Low level UUID API */ /* Low level UUID API */
#ifdef WAPP_PLATFORM_CPP
#define wapp_uuid_create() ([&](){ return WUUID{wapp_str8_buf(UUID_BUF_LENGTH)}; })
#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
// Just returns the same pointer that was passed in with the UUID initialised. // Just returns the same pointer that was passed in with the UUID initialised.
// Fails when passed a NULL pointer. // Fails when passed a NULL pointer.