Remove text from asserts

This commit is contained in:
2025-05-05 19:29:44 +01:00
parent be30189d15
commit 175f627f93
9 changed files with 30 additions and 30 deletions

View File

@@ -18,7 +18,7 @@ internal UUID4 generate_uuid4(void);
internal void uuid4_to_uuid(const UUID4* uuid4, UUID *uuid);
UUID *wapp_uuid_init_uuid4(UUID *uuid) {
assert(uuid != NULL && "uuid argument shouldn't be NULL");
assert(uuid != NULL);
UUID4 uuid4 = generate_uuid4();
uuid4_to_uuid(&uuid4, uuid);

View File

@@ -21,7 +21,7 @@ struct uuid {
#define wapp_uuid_create() ((UUID){.uuid = wapp_str8_buf(UUID_BUF_LENGTH)})
// Just returns the same pointer that was passed in with the UUID initialised.
// If the pointer is NULL, it skips initialisation.
// Fails when passed a NULL pointer.
UUID *wapp_uuid_init_uuid4(UUID *uuid);
#endif // !UUID_H

View File

@@ -2,7 +2,7 @@
#define WAPP_UUID_C
#include "uuid.c"
#include "../core/wapp_core.c"
#include "../primitives/wapp_primitives.c"
#include "../prng/wapp_prng.c"
#endif // !WAPP_UUID_C

View File

@@ -3,7 +3,7 @@
#include "uuid.h"
#include "../common/wapp_common.h"
#include "../core/wapp_core.h"
#include "../primitives/wapp_primitives.h"
#include "../prng/wapp_prng.h"
#endif // !WAPP_UUID_H