Code: Select all
if (boolean) do_something()
Code: Select all
if (boolean == TRUE) do_something()
But today I discovered that the box2dlib library was incompatible with running natively on an Apple Silicon Mac for this very reason! When putting the value -1 instead of +1 in a Boolean structure member (32-bit integer) it was actually being interpreted as false.
I've corrected the library at Github, and the MacOS Apple Silicon release has been updated accordingly, but I still find this extraordinarily surprising.