|
|
|
|
|
by fredsanford
4675 days ago
|
|
What's wrong with anything that's not false is true? If you treat it this way you remove the vast majority of the problems with most C or C++ BOOL implementations. The low bytes of a pointer being 0 (It can happen on Windows with VirtualAlloc and company) can screw up the works, so avoid assigning a pointer to a BOOL and use BOOL b = !!pointer if you have to break that rule. |
|