removed static_assert for now
parent
dafcbac251
commit
721c8b22d3
|
|
@ -1,10 +1,5 @@
|
||||||
#pragma once
|
#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
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
@ -158,13 +153,6 @@ typedef enum _icsneo_devicetype_t {
|
||||||
*/
|
*/
|
||||||
typedef uint32_t 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 {
|
typedef enum _icsneo_msg_type_t {
|
||||||
icsneo_msg_type_device,
|
icsneo_msg_type_device,
|
||||||
icsneo_msg_type_internal,
|
icsneo_msg_type_internal,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue