Simplify SideShow GUID compares via a macro.
This commit is contained in:
parent
86819ba9d8
commit
bf50959b80
3 changed files with 7 additions and 5 deletions
|
@ -38,6 +38,8 @@
|
|||
#include <LUFA/Drivers/USB/USB.h>
|
||||
|
||||
/* Macros: */
|
||||
#define GUID_COMPARE(a, b) (memcmp(a, b, sizeof(GUID_t)) == 0)
|
||||
|
||||
#define ARRAY_ELEMENTS(x) (sizeof(x) / sizeof(x[0]))
|
||||
|
||||
#define UNICODE_STRING_t(x) struct \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue