Simplify SideShow GUID compares via a macro.

This commit is contained in:
Dean Camera 2009-07-20 14:51:19 +00:00
parent 86819ba9d8
commit bf50959b80
3 changed files with 7 additions and 5 deletions

View file

@ -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 \