1 parent
270dbfe5ca
commit
6346765e32
2 files changed
+5
-1
No files matched your search
@@ -26,7 +26,11 @@ struct WUUID {
|
||||
|
||||
/* 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)})
|
||||
#endif
|
||||
|
||||
// Just returns the same pointer that was passed in with the UUID initialised.
|
||||
// Fails when passed a NULL pointer.
|
||||
|
||||
Reference in new issue
Block a user