Checked the flag not set in the correct way

The previous macro always returns false after expansion. Fixed the problem, and
also added a mechanism to catch such kind of mistakes during compile time.

Change-Id: I6870dfa80a8cbbaa0e145ae00f09dd0d78cff157
1 file changed