Jump to Content
Register
Log in
Forgot your password?
Third-party login
Hand made
Handmade Hero
Forums
Episode Guide
twitter
Handmade Hero
»
Forums
»
Code
← Back to index
nesdavid
David Roguin
15 posts
#818
bool32
9 years, 4 months ago
Would it be a good idea to
typedef uint8_t bool8
for true/false variables?
cmuratori
Casey Muratori
801 posts / 1 project
Casey Muratori is a programmer at Molly Rocket on the game 1935 and is the host of the educational programming series Handmade Hero.
#821
bool32
9 years, 4 months ago
I suspect you want to leave them to be 32-bit aligned for the most part, but in general if we cared about the size we would pack them into a bitfield with other bools.
- Casey
← Back to index
Log in
to reply