What is the difference (if any) between the two following preprocessor control statements.
#if
and
#ifdef
#ifdef FOO
is a shortcut for:
#if defined(FOO)
#if can also be used for other tests or for more complex preprocessor conditions.
#if defined(FOO) || defined(BAR)