rcx

library of miscellaneous bits of C code
git clone git://git.rr3.xyz/rcx
Log | Files | Refs | README | LICENSE

commit fbdfa7098ba6fbf70adca359ef75e2df081ad010
parent 6515b984afa17541af56c816e454524311e04fd9
Author: robert <robertrussell.72001@gmail.com>
Date:   Fri, 19 Aug 2022 19:47:00 -0700

Make CHAR_BIT == 8 assumption explicit

Diffstat:
Minc/cext/def.h | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/inc/cext/def.h b/inc/cext/def.h @@ -21,6 +21,10 @@ #define unlikely(x) (x) #endif +#if CHAR_BIT != 8 +#error "Expected CHAR_BIT == 8" +#endif + #if !defined(__STRICT_ANSI__) && defined(__SIZEOF_INT128__) #define CEXT_HAVE_128 1 #endif