Commit Graph

5 Commits

Author SHA1 Message Date
dae2c5bda4 Add force attribute to the casts in endian.h 2026-01-22 16:02:25 +01:00
94f4688ba6 fix: ASSUME not defined if unavailable 2026-01-22 16:02:25 +01:00
51dc8f85a6 Rewrite endian.h to utilise the new endian-specific integer types, for better type safety. 2026-01-22 12:25:39 +01:00
44b3af2b46 Add differing integer types for integers with different endianess.
This is inspired by the Linux kernel source code, and reduces
endianess-related bugs.
2026-01-22 12:25:39 +01:00
f5784844a8 Move more of the utility headers into /include/mcaselector-lite.
These headers have no associated C files, and are mainly used for
utility logic.
Having them in `/include` makes them more easily located, and more
globally used.

We are using "classic" header guards here over `#pragma once` for better
support. Since `#pragma once` is defined by the compiler, rather than
standard C.
Why isn't it used across the project? I have no idea.
2026-01-21 17:27:54 +01:00