You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In #if and #elif expressions, simplecpp treats true and false like any other unknown name and replaces them with 0. So #if true is false.
In C++, true and false are keywords. The standard says they are not replaced with 0 in #if expressions; they evaluate to 1 and 0 ([cpp.cond]). C23 made them keywords too, and they also evaluate to 1 and 0 in #if (C23
§6.10.2).
Activity
Fix cppcheck-opensource#711 (#if true evaluates to false in C++ and C…