← Back to team overview

maria-developers team mailing list archive

Re: TRUE vs true

 

On 23.04.15 10:14, Sergey Vojtovich wrote:
Hi!

According to MySQL coding guidelines:
https://dev.mysql.com/doc/internals/en/additional-suggestions.html

<quot>
* 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
   my_bool).
</quot>

"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.

[skip]


Follow ups

References