mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-13 05:17:13 +02:00
static_assert enum size
This commit is contained in:
@ -135,6 +135,8 @@ class slsDetectorDefs {
|
||||
} sls_detector_header;
|
||||
|
||||
#ifdef __cplusplus
|
||||
//For sending and receiving data
|
||||
static_assert(sizeof(detectorType) == sizeof(int), "enum and int differ in size");
|
||||
#define MAX_NUM_PACKETS 512
|
||||
using sls_bitset = std::bitset<MAX_NUM_PACKETS>;
|
||||
using bitset_storage = uint8_t[MAX_NUM_PACKETS / 8];
|
||||
|
Reference in New Issue
Block a user