diff --git a/VERSION b/VERSION index 6d7de6e..21e8796 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.0.2 +1.0.3 diff --git a/src/uuid/uuid.h b/src/uuid/uuid.h index 0afeea1..38120e1 100644 --- a/src/uuid/uuid.h +++ b/src/uuid/uuid.h @@ -26,7 +26,7 @@ struct WUUID { #define wapp_uuid_gen_uuid4() ([&](){ \ wapp_persist WUUID uuid = wapp_uuid_create(); \ return *(wapp_uuid_init_uuid4(&uuid)) \ -}) +}()) #else #define wapp_uuid_gen_uuid4() *(wapp_uuid_init_uuid4(&wapp_uuid_create())) #endif @@ -34,7 +34,7 @@ struct WUUID { /* Low level UUID API */ #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 #define wapp_uuid_create() ((WUUID){.uuid = wapp_str8_buf(UUID_BUF_LENGTH)}) #endif