logoalt Hacker News

delducayesterday at 8:02 PM1 replyview on HN

Good call out, I have just removed some #ifdef about endianness from my engine.


Replies

mort96yesterday at 8:56 PM

I have some places in some software where I assume little endian for simplicity, and I just leave in a static_assert(std::endian::native == std::endian::little) to let future me (or future someone else) know that a particular piece of code must be modified if it is ever to run on a not-little-endian machine.

show 2 replies