Introduce CF_ASSERT for debug builds.
Merge pull request #1695 from jimis/CF_ASSERT

CF_ASSERT