removed static_assert for now

David Rebbe 2024-12-05 14:44:25 -05:00
parent dafcbac251
commit 721c8b22d3
1 changed files with 0 additions and 12 deletions

View File

@ -1,10 +1,5 @@
#pragma once
// _Static_assert support, this can be removed once C23 is the "standard"
#if __STDC_VERSION__ < 202311L && !defined(__cplusplus)
#include <assert.h>
#endif
#ifdef __cplusplus
extern "C" {
#endif
@ -158,13 +153,6 @@ typedef enum _icsneo_devicetype_t {
*/
typedef uint32_t icsneo_devicetype_t;
// Make sure icsneo_devicetype_t is never smaller than the actual enum
#if __STDC_VERSION__ < 202311L && !defined(__cplusplus)
_Static_assert(sizeof(_icsneo_devicetype_t) <= sizeof(icsneo_devicetype_t), "icsneo_devicetype_t is too small");
#else // C++ or C23
static_assert(sizeof(_icsneo_devicetype_t) <= sizeof(icsneo_devicetype_t));
#endif
typedef enum _icsneo_msg_type_t {
icsneo_msg_type_device,
icsneo_msg_type_internal,