← Back to team overview

maria-developers team mailing list archive

Re: TRUE vs true


On 23.04.15 10:14, Sergey Vojtovich wrote:

According to MySQL coding guidelines:

* In C code, use TRUE and FALSE rather than 1/0

* In C++ code, it is OK to use true and false (do not use 1/0). You can use C++
   bool/true/false when calling C functions (values will be safely promoted to

"It is OK" == "it is allowed to use it." (about true/false)

you have not use 1/0

and TRUE/FALSE must in C and OK in C++ (there is no other told)

So I should carefully check what code it is or just use TRUE/FALSE?

I prefer TRUE/FALSE everywhere.


Follow ups