Add static, runtime and debug assert utilities
This commit is contained in:
		| @@ -2,11 +2,11 @@ | ||||
|  | ||||
| #include "uuid.h" | ||||
| #include "../common/aliases/aliases.h" | ||||
| #include "../common/assert/assert.h" | ||||
| #include "../primitives/strings/str8/str8.h" | ||||
| #include "../prng/xorshift/xorshift.h" | ||||
| #include <stdbool.h> | ||||
| #include <inttypes.h> | ||||
| #include <assert.h> | ||||
|  | ||||
| #define UUID_STR_FORMAT ("%.8" PRIx64 "-%.4" PRIx64 "-%.4" PRIx64 "-%.4" PRIx64 "-%.12" PRIx64) | ||||
|  | ||||
| @@ -20,7 +20,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); | ||||
|   wapp_debug_assert(uuid != NULL, "`uuid` should not be NULL"); | ||||
|  | ||||
|   UUID4 uuid4 = generate_uuid4(); | ||||
|   uuid4_to_uuid(&uuid4, uuid); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user