Add macro GUID_ARE_EQUAL for comparing GUIDs

This commit is contained in:
matt335672
2025-06-09 18:42:18 +01:00
parent ee8739a3f5
commit 4508de05c3
+1 -1
View File
@@ -29,7 +29,7 @@
#define GUID_SIZE 16 /* bytes */ #define GUID_SIZE 16 /* bytes */
#define GUID_STR_SIZE (GUID_SIZE * 2 + 4 + 1) /* w/ 4 hyphens + null terminator */ #define GUID_STR_SIZE (GUID_SIZE * 2 + 4 + 1) /* w/ 4 hyphens + null terminator */
#define GUID_ARE_EQUAL(g1,g2) (memcmp((g1)->g, (g2)->g, GUID_SIZE) == 0)
/** /**
* Use a struct for the guid so we can easily copy by assignment. * Use a struct for the guid so we can easily copy by assignment.