rcx

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

commit 9f64d5767fb44e69e67de22d9e385016eddec2ea
parent 1d965e021e61123954b56d9cd80c6f1c1799e8cc
Author: Robert Russell <robertrussell.72001@gmail.com>
Date:   Mon, 29 May 2023 01:01:37 -0700

Justify CHAR_BIT == 8 assertion

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

diff --git a/inc/def.h b/inc/def.h @@ -60,6 +60,7 @@ #define STATIC(T, ...) ({static __typeof__(T) tmp = __VA_ARGS__; &tmp;}) #endif +/* Reasonable code assumes CHAR_BIT == 8. */ #if CHAR_BIT != 8 #error "Expected CHAR_BIT == 8" #endif