[libc] C style static_assert takes two arguments

Fix this up and fix up the one existening dependency on the
existing incorrect behaviour.
This commit is contained in:
Brian Swetland
2021-02-06 19:39:59 -08:00
parent e231864e12
commit 5434847c51
2 changed files with 3 additions and 3 deletions

View File

@@ -24,6 +24,6 @@
#define assert(e) DEBUG_ASSERT(e)
#ifndef __cplusplus
#define static_assert(e) STATIC_ASSERT(e)
#define static_assert(e,r) _Static_assert(e, r)
#endif

View File

@@ -18,8 +18,8 @@
#include <kernel/spinlock.h>
#include <platform/lpc43xx-usb.h>
static_assert(sizeof(usb_dqh_t) == 64);
static_assert(sizeof(usb_dtd_t) == 32);
static_assert(sizeof(usb_dqh_t) == 64, "");
static_assert(sizeof(usb_dtd_t) == 32, "");
#include <dev/udc.h>