C++, using #if TRUE conditional directive-Collection of common programming errors
When using a statement like #if TRUE, what should I expect to happen? An explanation would be very appreciated! I understand how #if 1 works, but it gives a COMPLETELY different result in my code than using #if TRUE. I understand #if is a conditional directive, and what that implies; it’s just the “TRUE” (or “FALSE”) part that I don’t understand. It seems as though using it in this way never executes code following the statement. Here is an example.
#if TRUE
cout
Originally posted 2013-11-09 23:17:20.