#if or #ifdef with two conditions
Posted on 2008-10-22
I have two conditions for which I need to test in the same #if or #ifdef (e.g. NTCONSOLE and EXPANDED). What is the correct format? (I've seen several when I look through eisting code)
1) #if NTCONSOLE && EXPANDED
2) #if defined(NTCONSOLE) & defined(EXPANED)
Are these two syntaxes equivalent, and if not, which is preferred?