3 ms·
This is one of the more unique aspects of my emulator; since most other Game Boy emulators were written in an older C standard, (or an undesirable alternative l
by userbinator 8y ago
This is one of the more unique aspects of my emulator; since most other Game Boy emulators were written in an older C standard, (or an undesirable alternative like C++), they didn't have access to anonymous structs or unions
...unless you use MSVC, which has had that as an extension for a very long time (since MSVC6 at least.) I wonder if MS was the one who got that into C11.
- xmkfkg 8y agoYou got to be kidding! The MSVC impl is a incompatible incomplete joke and everyone knows it. Even MS is investing more and more in llvm tooling because of this.
- int0x80 8y agoyou can have anon structs an unions on gcc: https://gcc.gnu.org/onlinedocs/gcc/Unnamed-Fields.html https://gcc.gnu.org/onlinedocs/gcc/Unnamed-Fields.html